diff --git a/inc/api.php b/inc/api.php index 3a5c8da3..0dd479ac 100644 --- a/inc/api.php +++ b/inc/api.php @@ -80,6 +80,9 @@ class Api { $toInt = isset(self::$ints[$translated]); $val = $object->$local; + if (isset($this->config['hide_email']) && $this->config['hide_email'] && $local === 'email') { + $val = ''; + } if ($val !== null && $val !== '') { $apiPost[$translated] = $toInt ? (int) $val : $val; } diff --git a/templates/post_form.html b/templates/post_form.html index e6d77314..0febce44 100644 --- a/templates/post_form.html +++ b/templates/post_form.html @@ -21,15 +21,20 @@ {% endif %} {% if not config.field_disable_email or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}