mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-06 09:51:24 +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
|
# 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…
Reference in New Issue
Block a user