fedimbed: syntax error moment

This commit is contained in:
Cynthia Foxwell 2022-12-05 20:01:25 -07:00
parent e0c699acf5
commit ac94fa00e3

View file

@ -83,7 +83,7 @@ async function processUrl(msg, url) {
});
let postData;
if (rawPostData.startsWith("{") {
if (rawPostData.startsWith("{")) {
postData = JSON.parse(rawPostData);
} else {
logger.error("fedimbed", `Got non-JSON for "${url}": ${rawPostData}`);