Browse Source

Update PublicApiController, limit network pagination to 3 months

Daniel Supernault 4 years ago
parent
commit
10119bbbea
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/PublicApiController.php

+ 1 - 1
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();