mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-15 21:10:22 +01:00
fix: incorrect topic event added when topic moved out of cid -1 (used to be a share by the user; since removed.)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user