Node.js based forum software built for the modern web
fix: don't crash when no attachment, oops
Julian Lam0edaf17c6afa
diff --git a/src/activitypub/notes.js b/src/activitypub/notes.jsindex 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: {