cron: hashtags -> #t, links -> #r
This commit is contained in:
parent
e236e98259
commit
b46bcc559e
|
@ -63,7 +63,7 @@ async function updateTrendingHashtags() {
|
||||||
content: '',
|
content: '',
|
||||||
tags: [
|
tags: [
|
||||||
['L', 'pub.ditto.trends'],
|
['L', 'pub.ditto.trends'],
|
||||||
['l', 'hashtags', 'pub.ditto.trends'],
|
['l', '#t', 'pub.ditto.trends'],
|
||||||
...hashtags.map(({ value, authors, uses }) => ['t', value, authors.toString(), uses.toString()]),
|
...hashtags.map(({ value, authors, uses }) => ['t', value, authors.toString(), uses.toString()]),
|
||||||
],
|
],
|
||||||
created_at: Math.floor(Date.now() / 1000),
|
created_at: Math.floor(Date.now() / 1000),
|
||||||
|
@ -94,7 +94,7 @@ async function updateTrendingLinks() {
|
||||||
content: '',
|
content: '',
|
||||||
tags: [
|
tags: [
|
||||||
['L', 'pub.ditto.trends'],
|
['L', 'pub.ditto.trends'],
|
||||||
['l', 'links', 'pub.ditto.trends'],
|
['l', '#r', 'pub.ditto.trends'],
|
||||||
...links.map(({ value, authors, uses }) => ['r', value, authors.toString(), uses.toString()]),
|
...links.map(({ value, authors, uses }) => ['r', value, authors.toString(), uses.toString()]),
|
||||||
],
|
],
|
||||||
created_at: Math.floor(Date.now() / 1000),
|
created_at: Math.floor(Date.now() / 1000),
|
||||||
|
|
Loading…
Reference in New Issue