Update ApiV1Controller

pull/4752/head
Daniel Supernault 2023-11-12 23:32:45 -07:00
rodzic 7deaaed4dd
commit e917341651
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 23740873EE6F76A1
1 zmienionych plików z 0 dodań i 13 usunięć

Wyświetl plik

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