fix: wrong poster id for op;

This commit is contained in:
fowr
2024-08-09 14:10:18 -03:00
parent 021e20f373
commit 73fce5e571

View File

@@ -115,7 +115,7 @@ class Api {
$fields = $threadsPage ? $this->threadsPageFields : $this->postFields;
$this->translateFields($fields, $post, $apiPost);
if (isset($config['poster_ids']) && $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 ?? $post->id);
if ($threadsPage) return $apiPost;
// Handle country field