1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Move alias to below relevant method

This commit is contained in:
Matt Jankowski 2024-01-04 11:23:15 -05:00
parent bead407097
commit 2edc56a247

View file

@ -16,11 +16,11 @@ module Account::Suspensions
def suspended_permanently? def suspended_permanently?
suspended? && deletion_request.nil? suspended? && deletion_request.nil?
end end
alias permanently_unavailable? suspended_permanently?
def suspended_temporarily? def suspended_temporarily?
suspended? && deletion_request.present? suspended? && deletion_request.present?
end end
alias permanently_unavailable? suspended_permanently?
def suspend!(date: Time.now.utc, origin: :local, block_email: true) def suspend!(date: Time.now.utc, origin: :local, block_email: true)
transaction do transaction do