From 6b3b3e7ee33744bac73409a284f921228361c8e9 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 9 Mar 2026 21:53:53 -0400 Subject: [PATCH] fix: syntax error on undefined value --- src/activitypub/notes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/activitypub/notes.js b/src/activitypub/notes.js index a40ce33ab4..ac5fda2894 100644 --- a/src/activitypub/notes.js +++ b/src/activitypub/notes.js @@ -219,7 +219,7 @@ Notes.assert = async (uid, input, options = { skipChecks: false }) => { } // Filter image attachments out if they are in content - const { attachment } = post._activitypub; + const attachment = post?._activitypub?.attachment; if (attachment && attachment.length) { post._activitypub.attachment = attachment.filter((attachment) => { const inContent = attachment.type === 'Image' && (post.sourceContent || post.content).includes(attachment.url);