Explorar el Código

Update DiscoverController, fixes #520

Daniel Supernault hace 6 años
padre
commit
d06a3068ed
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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')