mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-16 05:20:24 +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,
|
oldCid: oldCid,
|
||||||
}),
|
}),
|
||||||
Topics.updateCategoryTagsCount([oldCid, cid], tags),
|
Topics.updateCategoryTagsCount([oldCid, cid], tags),
|
||||||
oldCid !== -1 ?
|
Topics.events.log(tid, { type: 'move', uid: data.uid, fromCid: oldCid }),
|
||||||
Topics.events.log(tid, { type: 'move', uid: data.uid, fromCid: oldCid }) :
|
|
||||||
topicTools.share(tid, data.uid),
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// Update entry in recent topics zset — must come after hash update
|
// Update entry in recent topics zset — must come after hash update
|
||||||
|
|||||||
Reference in New Issue
Block a user