mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
cron: hashtags -> #t, links -> #r
This commit is contained in:
parent
e236e98259
commit
b46bcc559e
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Reference in a new issue