1
0
Fork 0

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
1 changed files with 2 additions and 2 deletions

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();