fedimbed: copypaste moment

This commit is contained in:
Cynthia Foxwell 2022-12-05 20:11:43 -07:00
parent 94bd7c28a7
commit bd7ade61d3
1 changed files with 2 additions and 2 deletions

View File

@ -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,