the poster IDs were showing in API despite being disabled

This commit is contained in:
Anonke 2015-05-30 20:46:43 +02:00
parent d20149b579
commit 3f29bdfac9

View File

@ -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