From 623cec9d910c03dd67c94db3ce45bf334dafd869 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 8 Oct 2025 11:07:43 -0400 Subject: [PATCH] fix: logic error in image mime type checking --- src/activitypub/mocks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/activitypub/mocks.js b/src/activitypub/mocks.js index 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; }