diff --git a/lib/api/addresses.js b/lib/api/addresses.js index 50e02efb..d0d793bb 100644 --- a/lib/api/addresses.js +++ b/lib/api/addresses.js @@ -1110,7 +1110,7 @@ module.exports = (db, server) => { } } - if (!result.value.autoreply.html && 'html' in req.autoreply.params) { + if (!result.value.autoreply.html && 'html' in req.params.autoreply) { result.value.autoreply.html = ''; if (!result.value.autoreply.text) { // make sure we also update plaintext part @@ -1388,7 +1388,7 @@ module.exports = (db, server) => { } } - if (!result.value.autoreply.html && 'html' in req.autoreply.params) { + if (!result.value.autoreply.html && 'html' in req.params.autoreply) { result.value.autoreply.html = ''; if (!result.value.autoreply.text) { // make sure we also update plaintext part