fire topic edit action after topic is saved

This commit is contained in:
barisusakli
2014-06-30 16:59:36 -04:00
parent b8b6ae7b2f
commit c29dcc0ec9

View File

@@ -66,11 +66,12 @@ var winston = require('winston'),
if (options.topic_thumb) { if (options.topic_thumb) {
topicData.thumb = 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); topics.updateTags(tid, options.tags);
plugins.fireHook('action:topic.edit', tid);
} }
plugins.fireHook('action:post.edit', postData); plugins.fireHook('action:post.edit', postData);