API - threads.json last_modified is now really the timestamp of the last post, put bump time in a new field 'bump'
This commit is contained in:
parent
f45247a278
commit
24c6637b3d
|
@ -45,7 +45,7 @@ class Api {
|
||||||
|
|
||||||
$this->threadsPageFields = array(
|
$this->threadsPageFields = array(
|
||||||
'id' => 'no',
|
'id' => 'no',
|
||||||
'bump' => 'last_modified',
|
'bump' => 'bump',
|
||||||
'board' => 'board',
|
'board' => 'board',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -197,6 +197,7 @@ class Api {
|
||||||
$ips[] = $p->ip;
|
$ips[] = $p->ip;
|
||||||
}
|
}
|
||||||
$apiPosts['posts'][0]['unique_ips'] = count(array_unique($ips));
|
$apiPosts['posts'][0]['unique_ips'] = count(array_unique($ips));
|
||||||
|
$apiPosts['posts'][0]['last_modified'] = (empty($thread->posts) ? $thread : end($thread->posts))->time;
|
||||||
|
|
||||||
return $apiPosts;
|
return $apiPosts;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue