Fix previous commit.

This commit is contained in:
Fosco Marotto 2021-01-23 04:30:20 -05:00
parent b33c16b131
commit 6c2a60b378

View File

@ -39,7 +39,7 @@ class Api::V1::Accounts::StatusesController < Api::BaseController
if current_account.nil? if current_account.nil?
statuses = statuses.limit(8) statuses = statuses.limit(8)
statuses = statuses.where("created_at > NOW() - INTERVAL '30 days'") statuses = statuses.where("statuses.created_at > NOW() - INTERVAL '30 days'")
else else
statuses = statuses.paginate_by_id(limit_param(DEFAULT_STATUSES_LIMIT), params_slice(:max_id, :since_id, :min_id)) statuses = statuses.paginate_by_id(limit_param(DEFAULT_STATUSES_LIMIT), params_slice(:max_id, :since_id, :min_id))
end end