Change REST API to return empty data for suspended accounts (#14765)
This commit is contained in:
@@ -12,6 +12,8 @@ class StatusPolicy < ApplicationPolicy
|
||||
end
|
||||
|
||||
def show?
|
||||
return false if author.suspended?
|
||||
|
||||
if requires_mention?
|
||||
owned? || mention_exists?
|
||||
elsif private?
|
||||
|
Reference in New Issue
Block a user