Update InternalApiController

This commit is contained in:
Daniel Supernault 2022-01-28 22:56:52 -07:00
parent d30a5eb311
commit f8bc0d9c03
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -323,6 +323,9 @@ class InternalApiController extends Controller
->simplePaginate(10) ->simplePaginate(10)
->map(function($bookmark) use($pid) { ->map(function($bookmark) use($pid) {
$status = StatusService::get($bookmark->status_id, false); $status = StatusService::get($bookmark->status_id, false);
if(!$status) {
return false;
}
$status['bookmarked_at'] = $bookmark->created_at->format('c'); $status['bookmarked_at'] = $bookmark->created_at->format('c');
if($status) { if($status) {