1
0
Fork 0

Update DiscoverController, fixes #520

This commit is contained in:
Daniel Supernault 2018-10-20 12:29:37 -06:00
parent 5695cfaab5
commit d06a3068ed
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 1 additions and 0 deletions

View File

@ -82,6 +82,7 @@ class DiscoverController extends Controller
->firstOrFail(); ->firstOrFail();
$posts = $tag->posts() $posts = $tag->posts()
->withCount(['likes', 'comments'])
->whereIsNsfw(false) ->whereIsNsfw(false)
->whereVisibility('public') ->whereVisibility('public')
->has('media') ->has('media')