Node.js based forum software built for the modern web
fix: sanitize post remote post content regardless
Julian Lam8b0ccc80902e
diff --git a/src/posts/parse.js b/src/posts/parse.jsindex 1435b68da7..803df00e3e 100644--- a/src/posts/parse.js+++ b/src/posts/parse.js@@ -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) {