This commit is contained in:
barisusakli
2014-11-07 17:46:03 -05:00
parent b60ed95d20
commit 642136f6f8
3 changed files with 11 additions and 7 deletions

View File

@@ -67,6 +67,7 @@ var winston = require('winston'),
title = title.trim();
var topicData = {
tid: tid,
title: title,
slug: tid + '/' + utils.slugify(title)
};
@@ -75,7 +76,7 @@ var winston = require('winston'),
}
db.setObject('topic:' + tid, topicData, function(err) {
plugins.fireHook('action:topic.edit', tid);
plugins.fireHook('action:topic.edit', topicData);
});
topics.updateTags(tid, options.tags, function(err) {