From b46bcc559e3d4f07365472ea55e1a13cf8307ad3 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 2 Jun 2024 16:59:11 -0500 Subject: [PATCH] cron: hashtags -> #t, links -> #r --- src/cron.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cron.ts b/src/cron.ts index dc697be..c28e7a3 100644 --- a/src/cron.ts +++ b/src/cron.ts @@ -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),