From 80e03c857ea3b980c5bebd67a7a8fcd327188adf Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 19 Mar 2025 10:17:09 -0400 Subject: [PATCH] fix: #13254, configurable ap content prune --- src/activitypub/notes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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).`);