mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
refactor: merge post.edit
fix: dont fadeout/fadeint if title/post didnt change
This commit is contained in:
@@ -67,6 +67,7 @@ module.exports = function (Posts) {
|
||||
returnPostData.cid = topic.cid;
|
||||
returnPostData.topic = topic;
|
||||
returnPostData.editedISO = utils.toISOString(now);
|
||||
returnPostData.changed = oldContent !== data.content;
|
||||
|
||||
await topics.notifyFollowers(returnPostData, data.uid, {
|
||||
type: 'post-edit',
|
||||
|
||||
Reference in New Issue
Block a user