Update PublicApiController, limit network pagination to 3 months

pull/2720/head
Daniel Supernault 4 years ago
parent 4f31d7f391
commit 10119bbbea
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

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

Loading…
Cancel
Save