Browse Source

prohibit emails from showing up in api if hide_email is true

main
RealAngeleno 10 months ago
committed by -
parent
commit
8207b11024
  1. 3
      inc/api.php

3
inc/api.php

@ -81,6 +81,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;
}

Loading…
Cancel
Save