Skip to content

Node.js based forum software built for the modern web

chore: update ap cron job config

Julian Lamc680fa67d943
diff --git a/src/activitypub/index.js b/src/activitypub/index.js
index 1537aa8eee..69f16a9b61 100644
--- a/src/activitypub/index.js
+++ b/src/activitypub/index.js
@@ -44,8 +44,7 @@ ActivityPub.actors = require('./actors');
ActivityPub.startJobs = () => {
winston.verbose('[activitypub/jobs] Registering jobs.');
- new CronJob('0 0 * * *', ActivityPub.notes.prune, null, true);
- // new CronJob(new Date(Date.now() + 2000), ActivityPub.notes.prune, null, true);
+ new CronJob('0 0 * * *', ActivityPub.notes.prune, null, true, null, null, false); // change last argument to true for debugging
};
ActivityPub.resolveId = async (uid, id) => {