Преглед на файлове

Update ProfileController

Daniel Supernault преди 6 години
родител
ревизия
5b5a9d0a3a
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  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);