0
0
Fork 0

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:
Eugen Rochko 2018-05-02 15:50:20 +02:00 committed by GitHub
parent c5dcd7d836
commit f62539ce5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 11 deletions

View file

@ -8,7 +8,7 @@ class FavouriteService < BaseService
# @param [Status] status
# @return [Favourite]
def call(account, status)
authorize_with account, status, :show?
authorize_with account, status, :favourite?
favourite = Favourite.find_by(account: account, status: status)