Fix content not allowed flag ...
authornupplaPhil <admin+github@philipp.info>
Tue, 4 Feb 2020 20:38:59 +0000 (21:38 +0100)
committernupplaPhil <admin+github@philipp.info>
Tue, 4 Feb 2020 20:38:59 +0000 (21:38 +0100)
src/Util/EMailer/NotifyMailBuilder.php

index b7d11369e58632e99cf5e50c616557315ab81219..8a7eea426393dc755ebd4562ffe83a5f5b03f84a 100644 (file)
@@ -27,7 +27,7 @@ class NotifyMailBuilder extends MailBuilder
        protected $siteAdmin;
 
        /** @var bool */
-       private $contentAllowed = true;
+       private $contentAllowed = false;
        /** @var string */
        private $title = '';
        /** @var array Details to print a photo:
@@ -65,7 +65,7 @@ class NotifyMailBuilder extends MailBuilder
                $this->withSender($siteName, $siteEmailAddress, $siteEmailAddress);
 
                // check whether sending post content in email notifications is allowed
-               $this->contentAllowed = $this->config->get('system', 'enotify_no_content');
+               $this->contentAllowed = !$this->config->get('system', 'enotify_no_content', false);
        }
 
        /**