From aaa6d0685e18007a67d8cd2344ec725418bedfaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 23 Feb 2026 21:16:57 -0500 Subject: [PATCH] fix flat, add last info --- src/activitypub/notes.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/activitypub/notes.js b/src/activitypub/notes.js index 67dd64e1e1..7eadba9949 100644 --- a/src/activitypub/notes.js +++ b/src/activitypub/notes.js @@ -755,6 +755,7 @@ Notes.prune = async () => { }, { batch: 100, }); + winston.info(`[notes/prune] Scheduled pruning of topics in ${cids.length} categories complete`); }; @@ -805,7 +806,7 @@ async function hasLocalVoter(tids) { const upvote = topicPids.map(pid => `pid:${pid}:upvote`); const downvote = topicPids.map(pid => `pid:${pid}:downvote`); const voteSets = upvote.concat(downvote); - const voters = new Set(await db.getSetsMembers(voteSets).flat()); + const voters = new Set((await db.getSetsMembers(voteSets)).flat()); return Array.from(voters).some(uid => utils.isNumber(uid)); })); } \ No newline at end of file