Node.js based forum software built for the modern web
fix: logic error in image mime type checking
Julian Lam623cec9d910c
diff --git a/src/activitypub/mocks.js b/src/activitypub/mocks.jsindex a88fed09dc..1e04fb99ab 100644--- a/src/activitypub/mocks.js+++ b/src/activitypub/mocks.js@@ -104,7 +104,7 @@ Mocks._normalize = async (object) => {if (image) {const parsed = new URL(image);const type = mime.getType(parsed.pathname);- if (!type || type.startsWith('image/')) {+ if (!type || !type.startsWith('image/')) {activitypub.helpers.log(`[activitypub/mocks.post] Received image not identified as image due to MIME type: ${image}`);image = null;}