refactor: match core field name pinned

v1.18.x
Barış Soner Uşaklı 5 years ago
parent 0053e779e8
commit 478ed6c16f

@ -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 });

Loading…
Cancel
Save