2
0

Ensure blocked users cannot quote (#35624)

This commit is contained in:
Claire
2025-08-01 11:34:12 +02:00
committed by GitHub
parent 29a5f059d2
commit 6268321316

View File

@@ -21,7 +21,7 @@ class StatusPolicy < ApplicationPolicy
# This is about requesting a quote post, not validating it
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
def reblog?