fix: sanitize post remote post content regardless

This commit is contained in:
Julian Lam
2024-02-14 22:53:27 -05:00
parent 068c4fa90e
commit 8b0ccc8090

View File

@@ -63,6 +63,8 @@ module.exports = function (Posts) {
if (!activitypub.helpers.isUri(postData.pid) || postData.hasOwnProperty('sourceContent')) {
({ postData } = await plugins.hooks.fire('filter:parse.post', { postData }));
} else {
postData.content = await Posts.sanitize(postData.content);
}
postData.content = translator.escape(postData.content);
if (postData.pid) {