fedimbed: error handle mastoapi fallback

This commit is contained in:
Cynthia Foxwell 2022-12-05 20:46:07 -07:00
parent 04283d72a6
commit ad98a5558d
1 changed files with 2 additions and 0 deletions

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 =