Node.js based forum software built for the modern web
fix flat, add last info
Barış Soner Uşaklıaaa6d0685e18
diff --git a/src/activitypub/notes.js b/src/activitypub/notes.jsindex 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