fix: double sanitization

This commit is contained in:
Julian Lam
2024-06-20 22:25:09 -04:00
parent 8003946feb
commit d9ac7f4995

View File

@@ -287,6 +287,8 @@ Mocks.note = async (post) => {
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', {
postData: post,
type: 'activitypub.note',