mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-05 17:31:12 +00:00
Ensure blocked users cannot quote (#35624)
This commit is contained in:
parent
29a5f059d2
commit
6268321316
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue
Block a user