From 6c2a60b3789a7621fea62ab071562b3a1311dcc5 Mon Sep 17 00:00:00 2001 From: Fosco Marotto Date: Sat, 23 Jan 2021 04:30:20 -0500 Subject: [PATCH] Fix previous commit. --- app/controllers/api/v1/accounts/statuses_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/accounts/statuses_controller.rb b/app/controllers/api/v1/accounts/statuses_controller.rb index 32ef09d2..a69e5462 100644 --- a/app/controllers/api/v1/accounts/statuses_controller.rb +++ b/app/controllers/api/v1/accounts/statuses_controller.rb @@ -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