mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-13 15:58:50 +00:00
Add Account#unavailable? and Account#permanently_unavailable? aliases (#28053)
This commit is contained in:
@@ -8,7 +8,7 @@ class StatusPolicy < ApplicationPolicy
|
||||
end
|
||||
|
||||
def show?
|
||||
return false if author.suspended?
|
||||
return false if author.unavailable?
|
||||
|
||||
if requires_mention?
|
||||
owned? || mention_exists?
|
||||
|
||||
Reference in New Issue
Block a user