Change AccountReachFinder
to consider statuses based on suspension date (#34291)
This commit is contained in:
parent
a40a0221c6
commit
f62634b313
1 changed files with 5 additions and 1 deletions
|
@ -37,7 +37,11 @@ class AccountReachFinder
|
||||||
|
|
||||||
def oldest_status_id
|
def oldest_status_id
|
||||||
Mastodon::Snowflake
|
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
|
end
|
||||||
|
|
||||||
def recent_statuses
|
def recent_statuses
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue