From 6a4fc7b6ba7f69301c1b2e7eedd0429e301c53ae Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 2 Jun 2024 19:51:04 -0500 Subject: [PATCH] Track trending pubkeys too, why not --- src/cron.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cron.ts b/src/cron.ts index f450e8de..af7c4c45 100644 --- a/src/cron.ts +++ b/src/cron.ts @@ -49,6 +49,7 @@ async function updateTrendingTags(tagName: string, kinds: number[], limit: numbe /** Start cron jobs for the application. */ export function cron() { + Deno.cron('update trending pubkeys', '0 * * * *', () => updateTrendingTags('p', [1, 3], 40, Conf.relay)); Deno.cron('update trending notes', '15 * * * *', () => updateTrendingTags('e', [1, 6, 7], 40, Conf.relay, ['q'])); Deno.cron('update trending hashtags', '30 * * * *', () => updateTrendingTags('t', [1], 20)); Deno.cron('update trending links', '45 * * * *', () => updateTrendingTags('r', [1], 20));