forked from GithubBackups/vichan
Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
83b644f0f5 | ||
|
54f32bc75d | ||
|
5f1598367c | ||
|
3987b2a25d | ||
|
562ad74a12 | ||
|
73fce5e571 |
@ -119,8 +119,9 @@ class Api {
|
|||||||
$fields = $threadsPage ? self::THREADS_PAGE_FIELDS : $this->postFields;
|
$fields = $threadsPage ? self::THREADS_PAGE_FIELDS : $this->postFields;
|
||||||
$this->translateFields($fields, $post, $apiPost);
|
$this->translateFields($fields, $post, $apiPost);
|
||||||
|
|
||||||
|
|
||||||
if (isset($config['poster_ids']) && $config['poster_ids']) {
|
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) {
|
if ($threadsPage) {
|
||||||
return $apiPost;
|
return $apiPost;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user