diff options
| author | Anonke <anonke@gmail.com> | 2015-05-30 20:46:43 +0200 |
|---|---|---|
| committer | Anonke <anonke@gmail.com> | 2015-05-30 20:46:43 +0200 |
| commit | 3f29bdfac92cfff13b234f3abc9d92bd5b9a2a37 (patch) | |
| tree | a19efd6caffe6af576d7387448791067c83825b8 /inc | |
| parent | d20149b57929c27da87a7d9603d85717da15c5bc (diff) | |
the poster IDs were showing in API despite being disabled
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/api.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/api.php b/inc/api.php index b77fa3f8..57e4d367 100644 --- a/inc/api.php +++ b/inc/api.php @@ -101,7 +101,7 @@ class Api { $fields = $threadsPage ? $this->threadsPageFields : $this->postFields; $this->translateFields($fields, $post, $apiPost); - if (isset($config['poster_ids'])) $apiPost['id'] = poster_id($post->ip, $post->thread, $board['uri']); + if (isset($config['poster_ids']) && $config['poster_ids']) $apiPost['id'] = poster_id($post->ip, $post->thread, $board['uri']); if ($threadsPage) return $apiPost; // Handle country field |
