From 10119bbbea8755145481d8ba1621474e8c99fe72 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 6 Apr 2021 23:37:53 -0600 Subject: [PATCH] Update PublicApiController, limit network pagination to 3 months --- app/Http/Controllers/PublicApiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/PublicApiController.php b/app/Http/Controllers/PublicApiController.php index 23231b218..dabe5a6d9 100644 --- a/app/Http/Controllers/PublicApiController.php +++ b/app/Http/Controllers/PublicApiController.php @@ -523,7 +523,7 @@ class PublicApiController extends Controller ->whereIn('type', ['photo', 'photo:album', 'video', 'video:album', 'photo:video:album']) ->whereNotNull('uri') ->whereScope('public') - // ->where('created_at', '>', now()->subMonths(3)) + ->where('created_at', '>', now()->subMonths(3)) ->orderBy('created_at', 'desc') ->limit($limit) ->get();