mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: removing ability to specify deprecated topic 'thumb' on topic creation
This commit is contained in:
@@ -35,9 +35,6 @@ module.exports = function (Topics) {
|
|||||||
postcount: 0,
|
postcount: 0,
|
||||||
viewcount: 0,
|
viewcount: 0,
|
||||||
};
|
};
|
||||||
if (data.thumb) {
|
|
||||||
topicData.thumb = data.thumb;
|
|
||||||
}
|
|
||||||
const result = await plugins.hooks.fire('filter:topic.create', { topic: topicData, data: data });
|
const result = await plugins.hooks.fire('filter:topic.create', { topic: topicData, data: data });
|
||||||
topicData = result.topic;
|
topicData = result.topic;
|
||||||
await db.setObject('topic:' + topicData.tid, topicData);
|
await db.setObject('topic:' + topicData.tid, topicData);
|
||||||
|
|||||||
Reference in New Issue
Block a user