Selaa lähdekoodia

Merge pull request #1354 from pixelfed/frontend-ui-refactor

Update InternalApiController
daniel 6 vuotta sitten
vanhempi
commit
3413891f49
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      app/Http/Controllers/InternalApiController.php

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

@@ -117,6 +117,7 @@ class InternalApiController extends Controller
               ->whereIsNsfw(false)
               ->whereIsNsfw(false)
               ->whereVisibility('public')
               ->whereVisibility('public')
               ->whereNotIn('profile_id', $following)
               ->whereNotIn('profile_id', $following)
+              ->whereDate('created_at', '>', now()->subMonths(3))
               ->with('media')
               ->with('media')
               ->inRandomOrder()
               ->inRandomOrder()
               ->take(36)
               ->take(36)