diff options
author | Surinna Curtis <ekiru.0@gmail.com> | 2017-07-27 23:31:39 -0500 |
---|---|---|
committer | Surinna Curtis <ekiru.0@gmail.com> | 2017-09-13 21:47:30 -0500 |
commit | eaaf2170fe76def60f056df99decc1cf0898cd6f (patch) | |
tree | de6d23a77860993d92ec0ea859b490c613ba9dea /app/controllers | |
parent | 6f7d00bfddb03ead2e5b4011cbe21c4e97b92421 (diff) |
API support for muting notifications (and specs)
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/api/v1/accounts_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/accounts_controller.rb b/app/controllers/api/v1/accounts_controller.rb index 656cacd8a..ec3abfbf5 100644 --- a/app/controllers/api/v1/accounts_controller.rb +++ b/app/controllers/api/v1/accounts_controller.rb @@ -33,7 +33,7 @@ class Api::V1::AccountsController < Api::BaseController end def mute - MuteService.new.call(current_user.account, @account) + MuteService.new.call(current_user.account, @account, notifications: params[:notifications]) render json: @account, serializer: REST::RelationshipSerializer, relationships: relationships end |