mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-26 08:31:22 +01:00
fix: double sanitization
This commit is contained in:
@@ -287,6 +287,8 @@ Mocks.note = async (post) => {
|
|||||||
cc.add(followersUrl);
|
cc.add(followersUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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', {
|
const { postData: parsed } = await plugins.hooks.fire('filter:parse.post', {
|
||||||
postData: post,
|
postData: post,
|
||||||
type: 'activitypub.note',
|
type: 'activitypub.note',
|
||||||
|
|||||||
Reference in New Issue
Block a user