mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-13 15:58:50 +00:00
Add AccountWarning#appeal_eligible? method (#33526)
This commit is contained in:
@@ -6,7 +6,7 @@ class AccountWarningPolicy < ApplicationPolicy
|
||||
end
|
||||
|
||||
def appeal?
|
||||
target? && record.created_at >= Appeal::MAX_STRIKE_AGE.ago
|
||||
target? && record.appeal_eligible?
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user