mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-04 03:25:14 +00:00
Ensure blocked users cannot quote (#35624)
This commit is contained in:
parent
29a5f059d2
commit
6268321316
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue