Selaa lähdekoodia

Update StatusController

Daniel Supernault 5 vuotta sitten
vanhempi
commit
d5d960e2f0
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 4 1
      app/Http/Controllers/StatusController.php

+ 4 - 1
app/Http/Controllers/StatusController.php

@@ -76,7 +76,10 @@ class StatusController extends Controller
 
     public function showEmbed(Request $request, $username, int $id)
     {
-        $profile = Profile::whereNull(['domain','status'])->whereUsername($username)->first();
+        $profile = Profile::whereNull(['domain','status'])
+            ->whereIsPrivate(false)
+            ->whereUsername($username)
+            ->first();
         if(!$profile) {
             $content = view('status.embed-removed');
             return response($content)->header('X-Frame-Options', 'ALLOWALL');