mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
closes #5353
This commit is contained in:
@@ -66,7 +66,7 @@ module.exports = function (Posts) {
|
|||||||
|
|
||||||
postData.cid = results.topic.cid;
|
postData.cid = results.topic.cid;
|
||||||
postData.topic = results.topic;
|
postData.topic = results.topic;
|
||||||
plugins.fireHook('action:post.edit', _.clone(postData));
|
plugins.fireHook('action:post.edit', {post: _.clone(postData), uid: data.uid});
|
||||||
|
|
||||||
cache.del(String(postData.pid));
|
cache.del(String(postData.pid));
|
||||||
pubsub.publish('post:edit', String(postData.pid));
|
pubsub.publish('post:edit', String(postData.pid));
|
||||||
@@ -137,7 +137,7 @@ module.exports = function (Posts) {
|
|||||||
function (tags, next) {
|
function (tags, next) {
|
||||||
topicData.tags = data.tags;
|
topicData.tags = data.tags;
|
||||||
topicData.oldTitle = results.topic.title;
|
topicData.oldTitle = results.topic.title;
|
||||||
plugins.fireHook('action:topic.edit', topicData);
|
plugins.fireHook('action:topic.edit', {topic: topicData, uid: data.uid});
|
||||||
next(null, {
|
next(null, {
|
||||||
tid: tid,
|
tid: tid,
|
||||||
cid: results.topic.cid,
|
cid: results.topic.cid,
|
||||||
|
|||||||
Reference in New Issue
Block a user