From 13260881109fd9977be28c1b35752e3dd5c0c08c Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 27 Mar 2025 14:41:13 +0100 Subject: [PATCH] Change `AccountReachFinder` to consider statuses based on suspension date (#34291) --- app/lib/account_reach_finder.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/lib/account_reach_finder.rb b/app/lib/account_reach_finder.rb index 19464024a6..f5e229c6a3 100644 --- a/app/lib/account_reach_finder.rb +++ b/app/lib/account_reach_finder.rb @@ -37,7 +37,11 @@ class AccountReachFinder def oldest_status_id Mastodon::Snowflake - .id_at(STATUS_SINCE.ago, with_random: false) + .id_at(oldest_status_date, with_random: false) + end + + def oldest_status_date + @account.suspended? && @account.suspension_origin_local? ? @account.suspended_at - STATUS_SINCE : STATUS_SINCE.ago end def recent_statuses