소스 검색

Update DiscoverController

Daniel Supernault 7 년 전
부모
커밋
5a5f1bf637
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      app/Http/Controllers/DiscoverController.php

+ 2 - 3
app/Http/Controllers/DiscoverController.php

@@ -28,11 +28,10 @@ class DiscoverController extends Controller
                   ->whereFilterableType('App\Profile')
                   ->whereIn('filter_type', ['mute', 'block'])
                   ->pluck('filterable_id');
-                  
-        $following = $following->push($filtered);
+        $following->push($pid);
+        $following->push($filtered);
 
         $people = Profile::inRandomOrder()
-          ->where('id', '!=', $pid)
           ->whereNotIn('id', $following)
           ->take(3)
           ->get();