From cfa5974515cf7d091d4a33857c3d431dead44ce1 Mon Sep 17 00:00:00 2001 From: Timothy Fike Date: Sun, 16 Oct 2016 02:52:47 -0400 Subject: [PATCH] Add oldTitle to topic edit hook --- src/posts/edit.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/posts/edit.js b/src/posts/edit.js index e8a5ea8395..265874c2ae 100644 --- a/src/posts/edit.js +++ b/src/posts/edit.js @@ -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,