mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 10:06:13 +01:00
Add oldTitle to topic edit hook
This commit is contained in:
@@ -136,6 +136,7 @@ module.exports = function (Posts) {
|
||||
},
|
||||
function (tags, next) {
|
||||
topicData.tags = data.tags;
|
||||
topicData.oldTitle = results.topic.title;
|
||||
plugins.fireHook('action:topic.edit', topicData);
|
||||
next(null, {
|
||||
tid: tid,
|
||||
|
||||
Reference in New Issue
Block a user