Răsfoiți Sursa

Update ApiV1Controller

Daniel Supernault 1 an în urmă
părinte
comite
e917341651
1 a modificat fișierele cu 0 adăugiri și 13 ștergeri
  1. 0 13
      app/Http/Controllers/Api/ApiV1Controller.php

+ 0 - 13
app/Http/Controllers/Api/ApiV1Controller.php

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