0
0
Fork 0

Add Account#unavailable? and Account#permanently_unavailable? aliases (#28053)

This commit is contained in:
Claire 2023-11-30 16:43:26 +01:00 committed by GitHub
parent 35deaaf90b
commit 963354978a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 57 additions and 58 deletions

View file

@ -26,7 +26,7 @@ class Api::V1::Accounts::FollowerAccountsController < Api::BaseController
end
def hide_results?
@account.suspended? || (@account.hides_followers? && current_account&.id != @account.id) || (current_account && @account.blocking?(current_account))
@account.unavailable? || (@account.hides_followers? && current_account&.id != @account.id) || (current_account && @account.blocking?(current_account))
end
def default_accounts