소스 검색

Update ProfileController

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

+ 2 - 2
app/Http/Controllers/ProfileController.php

@@ -152,7 +152,7 @@ class ProfileController extends Controller
             $blocked = $this->blockedProfileCheck($profile);
             $check = $this->privateProfileCheck($profile, null);
             if($check || $blocked) {
-                return view('profile.private', compact('user'));
+                return view('profile.private', compact('user', 'is_following'));
             }
         }
         $followers = $profile->followers()->orderBy('created_at', 'desc')->simplePaginate(12);
@@ -176,7 +176,7 @@ class ProfileController extends Controller
             $blocked = $this->blockedProfileCheck($profile);
             $check = $this->privateProfileCheck($profile, null);
             if($check || $blocked) {
-                return view('profile.private', compact('user'));
+                return view('profile.private', compact('user', 'is_following'));
             }
         }
         $following = $profile->following()->orderBy('created_at', 'desc')->simplePaginate(12);