mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-05 07:10:30 +01:00
fix: have note federation call .parsePost instead of firing plugin hook
This commit is contained in:
@@ -303,10 +303,7 @@ Mocks.note = async (post) => {
|
||||
|
||||
const content = await posts.getPostField(post.pid, 'content');
|
||||
post.content = content; // re-send raw content
|
||||
const { postData: parsed } = await plugins.hooks.fire('filter:parse.post', {
|
||||
postData: post,
|
||||
type: 'activitypub.note',
|
||||
});
|
||||
const parsed = await posts.parsePost(post, 'activitypub.note');
|
||||
post.content = sanitize(parsed.content, sanitizeConfig);
|
||||
post.content = posts.relativeToAbsolute(post.content, posts.urlRegex);
|
||||
post.content = posts.relativeToAbsolute(post.content, posts.imgRegex);
|
||||
|
||||
Reference in New Issue
Block a user