diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-08-14 19:25:01 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-08-15 09:27:43 -0500 |
commit | a06f8140d9e1485126eafe2f1e561e067bd8a038 (patch) | |
tree | 3ed44eaacd2849e42794d1da0445c0f8265fdfc6 /app/services | |
parent | 6d026c5007113f14e70b9cec2933eff52d072312 (diff) |
handle interactions on sharekeyed posts when both participants are local; allow faving sharekeyed posts
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/favourite_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/favourite_service.rb b/app/services/favourite_service.rb index ce13b92ed..cff4c37e0 100644 --- a/app/services/favourite_service.rb +++ b/app/services/favourite_service.rb @@ -7,8 +7,8 @@ class FavouriteService < BaseService # @param [Account] account # @param [Status] status # @return [Favourite] - def call(account, status, skip_notify = false) - authorize_with account, status, :favourite? + def call(account, status, skip_notify: false, skip_authorize: false) + authorize_with account, status, :favourite? unless skip_authorize favourite = Favourite.find_by(account: account, status: status) |