Update InternalApiController

This commit is contained in:
Daniel Supernault 2022-01-27 05:11:06 -07:00
parent 19867ce97a
commit 34a3d65f30
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -320,12 +320,12 @@ class InternalApiController extends Controller
->orderByDesc('created_at')
->simplePaginate(10)
->map(function($bookmark) {
$status = StatusService::get($bookmark->status_id);
$status = StatusService::get($bookmark->status_id, false);
$status['bookmarked_at'] = $bookmark->created_at->format('c');
return $status;
})
->filter(function($bookmark) {
return isset($bookmark['id']);
return $bookmark && isset($bookmark['id']);
})
->values();