fedimbed: error handle mastoapi fallback

This commit is contained in:
Cynthia Foxwell 2022-12-05 20:46:07 -07:00
parent 04283d72a6
commit ad98a5558d

View file

@ -131,6 +131,8 @@ async function processUrl(msg, url) {
"fedimbed",
`Bailing trying to re-embed "${url}": Failed to get post from both AS2 and MastoAPI.`
);
} else if (postData2.error) {
logger.error("fedimbed", `Bailing trying to re-embed "${url}", MastoAPI gave us error: ${postData2.error}`);
} else {
cw = postData2.spoiler_warning;
content =