This commit is contained in:
Eric Uldall 2020-08-27 22:08:36 +02:00 committed by GitHub
commit daa9d03288
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -225,8 +225,14 @@ class MessageSender {
throw statusError;
}
html = response.body;
text = '';
try {
const responseJSON = JSON.parse(response.body);
html = responseJSON.html;
text = responseJSON.text;
} catch () {
html = response.body;
}
renderTags = false;
}