From d936d5c073c1f06781e3c3bf4d503ee6512e72bf Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Sun, 16 Feb 2025 14:27:57 -0500 Subject: [PATCH] fix: logic failure causing remote posts with image to not parse properly, #13164 --- 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 493655c272..003d392333 100644 --- a/src/activitypub/mocks.js +++ b/src/activitypub/mocks.js @@ -190,7 +190,7 @@ Mocks.post = async (objects) => { } switch (true) { - case image && image.hasOwnProperty('url') && image.url: { + case image && image.hasOwnProperty('url') && !!image.url: { image = image.url; break; }