From bd7ade61d3a35394df82c5ca9ba5d7949237b516 Mon Sep 17 00:00:00 2001 From: Cynthia Date: Mon, 5 Dec 2022 20:11:43 -0700 Subject: [PATCH] fedimbed: copypaste moment --- src/modules/fedimbed.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/fedimbed.js b/src/modules/fedimbed.js index 266dc62..cc316fc 100644 --- a/src/modules/fedimbed.js +++ b/src/modules/fedimbed.js @@ -86,7 +86,7 @@ async function processUrl(msg, url) { if (rawPostData.startsWith("{")) { postData = JSON.parse(rawPostData); } else { - logger.error("fedimbed", `Got non-JSON for "${url}": ${rawPostData}`); + logger.warn("fedimbed", `Got non-JSON for "${url}": ${rawPostData}`); } if (postData?.error) { @@ -141,7 +141,7 @@ async function processUrl(msg, url) { url: postData2.account.url, avatar: postData2.account.avatar, }; - for (const attachment of postData.media_attachments) { + for (const attachment of postData2.media_attachments) { attachments.push({ url: attachment.url, desc: attachment.description,