Browse Source

Update DiscoverController

Daniel Supernault 6 năm trước cách đây
mục cha
commit
c819bfe351
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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)