Browse Source

Update DiscoverController, fixes #520

Daniel Supernault 6 years ago
parent
commit
d06a3068ed
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/Http/Controllers/DiscoverController.php

+ 1 - 0
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')