Browse Source

the poster IDs were showing in API despite being disabled

pull/40/head
Anonke 9 years ago
parent
commit
3f29bdfac9
  1. 2
      inc/api.php

2
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

Loading…
Cancel
Save