diff --git a/src/activitypub/notes.js b/src/activitypub/notes.js index 52c22c34e8..74a3db197f 100644 --- a/src/activitypub/notes.js +++ b/src/activitypub/notes.js @@ -564,7 +564,7 @@ Notes.prune = async () => { */ winston.info('[notes/prune] Starting scheduled pruning of topics'); const start = '-inf'; - const stop = Date.now() - (1000 * 60 * 60 * 24 * 30); // 30 days; todo: make configurable? + const stop = Date.now() - (1000 * 60 * 60 * 24 * meta.config.activitypubContentPruneDays); let tids = await db.getSortedSetRangeByScore('cid:-1:tids', 0, -1, start, stop); winston.info(`[notes/prune] Found ${tids.length} topics older than 30 days (since last activity).`);