forked from GithubBackups/vichan
Merge pull request #783 from perdedora/fix-poster-id
fix: wrong poster id for op in api
This commit is contained in:
commit
5f1598367c
@ -119,8 +119,9 @@ class Api {
|
||||
$fields = $threadsPage ? self::THREADS_PAGE_FIELDS : $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']);
|
||||
$apiPost['id'] = poster_id($post->ip, $post->thread ?? $post->id);
|
||||
}
|
||||
if ($threadsPage) {
|
||||
return $apiPost;
|
||||
|
Loading…
x
Reference in New Issue
Block a user