Fix previous commit.

This commit is contained in:
Fosco Marotto 2021-01-23 04:30:20 -05:00
parent b33c16b131
commit 6c2a60b378
1 changed files with 1 additions and 1 deletions

View File

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