[Lists] Add a 10 day limit to list query
This commit is contained in:
parent
0af28e9b0a
commit
b81b6ad1c2
@ -32,6 +32,8 @@ class Api::V1::Timelines::ListController < Api::BaseController
|
|||||||
def list_statuses
|
def list_statuses
|
||||||
statuses = Status.where(
|
statuses = Status.where(
|
||||||
account: @accounts, reply: false
|
account: @accounts, reply: false
|
||||||
|
).where(
|
||||||
|
'updated_at > ?', 10.days.ago
|
||||||
).paginate_by_id(
|
).paginate_by_id(
|
||||||
limit_param(DEFAULT_STATUSES_LIMIT),
|
limit_param(DEFAULT_STATUSES_LIMIT),
|
||||||
params_slice(:max_id, :since_id, :min_id)
|
params_slice(:max_id, :since_id, :min_id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user