Remove most behaviour disparities between blocks and mutes (#7231)
* Remove most behaviour disparities between blocks and mutes The only differences between block and mute should be: - Mutes can optionally NOT affect notifications - Mutes should not be visible to the muted Fix #7230 Fix #5713 * Do not allow boosting someone you blocked Fix #7248 * Do not allow favouriting someone you blocked * Fix nil error in StatusPolicy
This commit is contained in:
parent
c5dcd7d836
commit
f62539ce5c
3 changed files with 18 additions and 11 deletions
|
@ -16,7 +16,11 @@ class StatusPolicy < ApplicationPolicy
|
|||
end
|
||||
|
||||
def reblog?
|
||||
!direct? && (!private? || owned?) && show?
|
||||
!direct? && (!private? || owned?) && show? && !current_account&.blocking?(author)
|
||||
end
|
||||
|
||||
def favourite?
|
||||
show? && !current_account&.blocking?(author)
|
||||
end
|
||||
|
||||
def destroy?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue