Node.js based forum software built for the modern web
fix: filter fork topic events by category find privilege (#14823)
palmoni50af568a574e2
diff --git a/src/topics/fork.js b/src/topics/fork.jsindex 6239136ffe..db8e5ea85b 100644--- a/src/topics/fork.js+++ b/src/topics/fork.js@@ -86,7 +86,7 @@ module.exports = function (Topics) {forkTimestamp: now,}),db.sortedSetsAdd(['topics:votes', `cid:${cid}:tids:votes`], mainPost.votes, tid),- Topics.events.log(fromTid, { type: 'fork', uid, href: `/topic/${tid}` }),+ Topics.events.log(fromTid, { type: 'fork', uid, toCid: cid, href: `/topic/${tid}` }),]);// ideally we should federate a "move" activity instead, then can capture remote posts too. tbd