1
0
Daniel Supernault 6 жил өмнө
parent
commit
64dae33a87

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

@@ -132,7 +132,7 @@ class ProfileController extends Controller
             $blocked = $this->blockedProfileCheck($profile);
             $blocked = $this->blockedProfileCheck($profile);
             $check = $this->privateProfileCheck($profile, null);
             $check = $this->privateProfileCheck($profile, null);
             if($check || $blocked) {
             if($check || $blocked) {
-                return view('profile.private', compact('user'));
+                return redirect($profile->url());
             }
             }
         }
         }
         $items = $profile->statuses()->whereIn('visibility',['public', 'unlisted'])->orderBy('created_at', 'desc')->take(10)->get();
         $items = $profile->statuses()->whereIn('visibility',['public', 'unlisted'])->orderBy('created_at', 'desc')->take(10)->get();