mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 23:15:48 +01:00
fire topic edit action after topic is saved
This commit is contained in:
@@ -66,11 +66,12 @@ var winston = require('winston'),
|
||||
if (options.topic_thumb) {
|
||||
topicData.thumb = options.topic_thumb;
|
||||
}
|
||||
db.setObject('topic:' + tid, topicData);
|
||||
|
||||
db.setObject('topic:' + tid, topicData, function(err) {
|
||||
plugins.fireHook('action:topic.edit', tid);
|
||||
});
|
||||
|
||||
topics.updateTags(tid, options.tags);
|
||||
|
||||
plugins.fireHook('action:topic.edit', tid);
|
||||
}
|
||||
|
||||
plugins.fireHook('action:post.edit', postData);
|
||||
|
||||
Reference in New Issue
Block a user