diff --git a/src/activitypub/notes.js b/src/activitypub/notes.js index d9e037a248..1a521dceb9 100644 --- a/src/activitypub/notes.js +++ b/src/activitypub/notes.js @@ -86,6 +86,10 @@ Notes.updateLocalRecipients = async (id, { to, cc }) => { }; Notes.saveAttachments = async (id, attachments) => { + if (!attachments) { + return; + } + const bulkOps = { hash: [], zset: {