From 2b733e4a8ee610e8a959bee01c05b95c2cfd23db Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 21 Nov 2025 15:20:44 -0500 Subject: [PATCH] fix: incorrect topic event added when topic moved out of cid -1 (used to be a share by the user; since removed.) --- src/topics/tools.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/topics/tools.js b/src/topics/tools.js index 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