Explorar o código

Update ProfileController

Daniel Supernault %!s(int64=6) %!d(string=hai) anos
pai
achega
5b5a9d0a3a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      app/Http/Controllers/ProfileController.php

+ 1 - 0
app/Http/Controllers/ProfileController.php

@@ -62,6 +62,7 @@ class ProfileController extends Controller
               ->whereHas('media')
               ->whereNull('in_reply_to_id')
               ->whereNull('reblog_of_id')
+              ->whereIn('visibility', ['public', 'unlisted'])
               ->orderBy('created_at', 'desc')
               ->withCount(['comments', 'likes'])
               ->simplePaginate(21);