mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +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')
|
->orderByDesc('created_at')
|
||||||
->simplePaginate(10)
|
->simplePaginate(10)
|
||||||
->map(function($bookmark) {
|
->map(function($bookmark) {
|
||||||
$status = StatusService::get($bookmark->status_id);
|
$status = StatusService::get($bookmark->status_id, false);
|
||||||
$status['bookmarked_at'] = $bookmark->created_at->format('c');
|
$status['bookmarked_at'] = $bookmark->created_at->format('c');
|
||||||
return $status;
|
return $status;
|
||||||
})
|
})
|
||||||
->filter(function($bookmark) {
|
->filter(function($bookmark) {
|
||||||
return isset($bookmark['id']);
|
return $bookmark && isset($bookmark['id']);
|
||||||
})
|
})
|
||||||
->values();
|
->values();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue