mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
feat: match hook property to topic property
This commit is contained in:
@@ -93,7 +93,8 @@ module.exports = function (Topics) {
|
||||
throw new Error('[[error:no-privileges]]');
|
||||
}
|
||||
await Topics.setTopicField(tid, 'locked', lock ? 1 : 0);
|
||||
topicData.isLocked = lock;
|
||||
topicData.isLocked = lock; // deprecate in v2.0
|
||||
topicData.locked = lock;
|
||||
|
||||
plugins.fireHook('action:topic.lock', { topic: _.clone(topicData), uid: uid });
|
||||
return topicData;
|
||||
|
||||
Reference in New Issue
Block a user