From ba35a2f25e9c492870a5c4bb74f52d876b497048 Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Thu, 4 Jan 2018 12:13:22 +0200 Subject: [PATCH] autoreply fix --- lib/api/addresses.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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