mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-29 09:43:16 +00:00
Update PublicApiController, limit network pagination to 3 months
This commit is contained in:
parent
4f31d7f391
commit
10119bbbea
1 changed files with 1 additions and 1 deletions
|
@ -523,7 +523,7 @@ class PublicApiController extends Controller
|
||||||
->whereIn('type', ['photo', 'photo:album', 'video', 'video:album', 'photo:video:album'])
|
->whereIn('type', ['photo', 'photo:album', 'video', 'video:album', 'photo:video:album'])
|
||||||
->whereNotNull('uri')
|
->whereNotNull('uri')
|
||||||
->whereScope('public')
|
->whereScope('public')
|
||||||
// ->where('created_at', '>', now()->subMonths(3))
|
->where('created_at', '>', now()->subMonths(3))
|
||||||
->orderBy('created_at', 'desc')
|
->orderBy('created_at', 'desc')
|
||||||
->limit($limit)
|
->limit($limit)
|
||||||
->get();
|
->get();
|
||||||
|
|
Loading…
Reference in a new issue