Ensure blocked users cannot quote (#35624)

pull/35627/head
Claire 3 months ago committed by GitHub
parent 29a5f059d2
commit 6268321316
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -21,7 +21,7 @@ class StatusPolicy < ApplicationPolicy
# This is about requesting a quote post, not validating it # This is about requesting a quote post, not validating it
def quote? def quote?
record.quote_policy_for_account(current_account, preloaded_relations: @preloaded_relations) != :denied show? && record.quote_policy_for_account(current_account, preloaded_relations: @preloaded_relations) != :denied
end end
def reblog? def reblog?

Loading…
Cancel
Save