Browse Source

Update DiscoverController

Daniel Supernault 6 years ago
parent
commit
c819bfe351
1 changed files with 2 additions and 0 deletions
  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)