1
0
Эх сурвалжийг харах

Update PublicApiController, limit network pagination to 3 months

Daniel Supernault 4 жил өмнө
parent
commit
10119bbbea

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