From 53d1c10ec44073514c721925b73e44847bfe58a7 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 20 Feb 2024 14:19:50 -0500 Subject: [PATCH] fix: regression re: attachment handling --- src/activitypub/notes.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/activitypub/notes.js b/src/activitypub/notes.js index 584a38e8ca..4b7eadb711 100644 --- a/src/activitypub/notes.js +++ b/src/activitypub/notes.js @@ -46,7 +46,7 @@ Notes.assert = async (uid, input, options = {}) => { } // Parse ActivityPub-specific data if exists (if not, was parsed already) - if (postData.hasOwnProperty('_activityPub')) { + if (postData.hasOwnProperty('_activitypub')) { const { to, cc, attachment } = postData._activitypub; await Notes.updateLocalRecipients(id, { to, cc }); await Notes.saveAttachments(id, attachment); @@ -115,7 +115,6 @@ Notes.saveAttachments = async (id, attachments) => { const hash = crypto.createHash('sha256').update(url).digest('hex'); const key = `attachment:${hash}`; - console.log('attachment key is', key); bulkOps.hash.push([key, { mediaType, url, name, width, height }]); bulkOps.zset.score.push(idx);