Skip to content

Node.js based forum software built for the modern web

fix(ap): use correct key 'ap.errors' (dot) in pruning cron job

Julian Lam1e0ce6e55f98
diff --git a/src/activitypub/jobs.js b/src/activitypub/jobs.js
index 8c4f83c5a8..ac62754ac7 100644
--- a/src/activitypub/jobs.js
+++ b/src/activitypub/jobs.js
@@ -72,7 +72,7 @@ Jobs.start = async () => {
onTick: async () => {
await tryCronJob(async () => {
// Delete entries older than 24h
- await db.sortedSetsRemoveRangeByScore(['ap:errors'], '-inf', Date.now() - (1000 * 60 * 60 * 24));
+ await db.sortedSetsRemoveRangeByScore(['ap.errors'], '-inf', Date.now() - (1000 * 60 * 60 * 24));
});
},
});