Explorar el Código

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

Update InternalApiController
daniel hace 6 años
padre
commit
3413891f49
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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)
               ->whereVisibility('public')
               ->whereNotIn('profile_id', $following)
+              ->whereDate('created_at', '>', now()->subMonths(3))
               ->with('media')
               ->inRandomOrder()
               ->take(36)