From d06a3068ed81bfba6b5421fa998988e25b768766 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 20 Oct 2018 12:29:37 -0600 Subject: [PATCH] Update DiscoverController, fixes #520 --- app/Http/Controllers/DiscoverController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/DiscoverController.php b/app/Http/Controllers/DiscoverController.php index f991e4f04..f4b0097ca 100644 --- a/app/Http/Controllers/DiscoverController.php +++ b/app/Http/Controllers/DiscoverController.php @@ -82,6 +82,7 @@ class DiscoverController extends Controller ->firstOrFail(); $posts = $tag->posts() + ->withCount(['likes', 'comments']) ->whereIsNsfw(false) ->whereVisibility('public') ->has('media')