mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-22 13:03:16 +00:00
Update ApiV1Controller
This commit is contained in:
parent
7deaaed4dd
commit
e917341651
1 changed files with 0 additions and 13 deletions
|
@ -3603,19 +3603,6 @@ class ApiV1Controller extends Controller
|
|||
->filter(function($profile) use($pid) {
|
||||
return $profile['id'] != $pid;
|
||||
})
|
||||
->map(function($profile) {
|
||||
$ids = collect(ProfileStatusService::get($profile['id'], 0, 9))
|
||||
->map(function($id) {
|
||||
return StatusService::get($id, true);
|
||||
})
|
||||
->filter(function($post) {
|
||||
return $post && isset($post['id']);
|
||||
})
|
||||
->take(3)
|
||||
->values();
|
||||
$profile['recent_posts'] = $ids;
|
||||
return $profile;
|
||||
})
|
||||
->take(6)
|
||||
->values();
|
||||
|
||||
|
|
Loading…
Reference in a new issue