cron: hashtags -> #t, links -> #r

This commit is contained in:
Alex Gleason 2024-06-02 16:59:11 -05:00
parent e236e98259
commit b46bcc559e
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ async function updateTrendingHashtags() {
content: '',
tags: [
['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()]),
],
created_at: Math.floor(Date.now() / 1000),
@ -94,7 +94,7 @@ async function updateTrendingLinks() {
content: '',
tags: [
['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()]),
],
created_at: Math.floor(Date.now() / 1000),