Commit b81b6ad1 authored by Fosco Marotto's avatar Fosco Marotto

[Lists] Add a 10 day limit to list query

parent 0af28e9b
......@@ -32,6 +32,8 @@ class Api::V1::Timelines::ListController < Api::BaseController
def list_statuses
statuses = Status.where(
account: @accounts, reply: false
).where(
'updated_at > ?', 10.days.ago
).paginate_by_id(
limit_param(DEFAULT_STATUSES_LIMIT),
params_slice(:max_id, :since_id, :min_id)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment