Node.js based forum software built for the modern web
fix: incorrect topic event added when topic moved out of cid -1 (used to be a share by the user; since removed.)
Julian Lam2b733e4a8ee6
diff --git a/src/topics/tools.js b/src/topics/tools.jsindex 294615b38a..f4ac42e3dd 100644--- a/src/topics/tools.js+++ b/src/topics/tools.js@@ -283,9 +283,7 @@ module.exports = function (Topics) {oldCid: oldCid,}),Topics.updateCategoryTagsCount([oldCid, cid], tags),- oldCid !== -1 ?- Topics.events.log(tid, { type: 'move', uid: data.uid, fromCid: oldCid }) :- topicTools.share(tid, data.uid),+ Topics.events.log(tid, { type: 'move', uid: data.uid, fromCid: oldCid }),]);// Update entry in recent topics zset — must come after hash update