refactor: match core field name pinned

This commit is contained in:
Barış Soner Uşaklı
2020-05-04 12:37:42 -04:00
parent 0053e779e8
commit 478ed6c16f

View File

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