mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 20:17:32 +02:00
feat: show bodyLong in notifications, closes #4767
dont show blockquotes show post content in flag notification
This commit is contained in:
@@ -84,20 +84,25 @@ module.exports = function (Posts) {
|
||||
returnPostData.oldContent = oldContent;
|
||||
returnPostData.newContent = data.content;
|
||||
|
||||
await topics.notifyFollowers(returnPostData, data.uid, {
|
||||
type: 'post-edit',
|
||||
bodyShort: translator.compile('notifications:user-edited-post', editor.username, topic.title),
|
||||
nid: `edit_post:${data.pid}:uid:${data.uid}`,
|
||||
});
|
||||
await topics.syncBacklinks(returnPostData);
|
||||
|
||||
plugins.hooks.fire('action:post.edit', { post: { ...returnPostData, _activitypub }, data: data, uid: data.uid });
|
||||
plugins.hooks.fire('action:post.edit', {
|
||||
post: { ...returnPostData, _activitypub },
|
||||
data: data,
|
||||
uid: data.uid,
|
||||
});
|
||||
|
||||
Posts.clearCachedPost(String(postData.pid));
|
||||
pubsub.publish('post:edit', String(postData.pid));
|
||||
|
||||
await Posts.parsePost(returnPostData);
|
||||
|
||||
await topics.notifyFollowers(returnPostData, data.uid, {
|
||||
type: 'post-edit',
|
||||
bodyShort: translator.compile('notifications:user-edited-post', editor.username, topic.title),
|
||||
nid: `edit_post:${data.pid}:uid:${data.uid}`,
|
||||
});
|
||||
|
||||
return {
|
||||
topic: topic,
|
||||
editor: editor,
|
||||
|
||||
Reference in New Issue
Block a user