mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-01 21:30:30 +01:00
refactor: match core field name pinned
This commit is contained in:
@@ -138,7 +138,8 @@ module.exports = function (Topics) {
|
||||
|
||||
await Promise.all(promises);
|
||||
|
||||
topicData.isPinned = pin;
|
||||
topicData.isPinned = pin; // deprecate in v2.0
|
||||
topicData.pinned = pin;
|
||||
|
||||
plugins.fireHook('action:topic.pin', { topic: _.clone(topicData), uid: uid });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user