Update DiscoverController

This commit is contained in:
Daniel Supernault 2018-12-21 12:53:10 -07:00
parent 591e50541e
commit c819bfe351
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

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