Explorar el Código

Update DiscoverController

Daniel Supernault hace 6 años
padre
commit
c819bfe351
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      app/Http/Controllers/DiscoverController.php

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

@@ -36,6 +36,8 @@ class DiscoverController extends Controller
           ->firstOrFail();
 
         $posts = $tag->posts()
+          ->whereNull('url')
+          ->whereNull('uri')
           ->whereHas('media')
           ->withCount(['likes', 'comments'])
           ->whereIsNsfw(false)