Add notes to /api/v1/accounts/:id/mute (#193)

This commit is contained in:
David Yip
2018-01-25 22:38:02 -06:00
parent 47ec2eff65
commit 27f8d2c739
5 changed files with 19 additions and 6 deletions

View File

@@ -26,7 +26,7 @@ class Api::V1::AccountsController < Api::BaseController
end
def mute
MuteService.new.call(current_user.account, @account, notifications: params[:notifications])
MuteService.new.call(current_user.account, @account, notifications: params[:notifications], note: params[:note])
render json: @account, serializer: REST::RelationshipSerializer, relationships: relationships
end