Explorar o código

Update PublicApiController, limit network pagination to 3 months

Daniel Supernault %!s(int64=4) %!d(string=hai) anos
pai
achega
10119bbbea
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();