1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-25 01:05:36 +00:00

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

View file

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