mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update InternalApiController
This commit is contained in:
parent
19867ce97a
commit
34a3d65f30
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue