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,