1
0
Fork 0

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
1 changed files with 2 additions and 0 deletions

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)