]> cat aescling's git repositories - mastodon.git/commitdiff
Fixed a typo that was breaking the account mute API endpoint
authorSurinna Curtis <ekiru.0@gmail.com>
Thu, 14 Sep 2017 02:04:05 +0000 (21:04 -0500)
committerSurinna Curtis <ekiru.0@gmail.com>
Thu, 14 Sep 2017 02:47:30 +0000 (21:47 -0500)
app/controllers/api/v1/accounts_controller.rb

index 3e9ac1025c433012ede82aaae70bfa5f7b10c103..ec3abfbf588c384c11b37882064804dfd6c6fa1f 100644 (file)
@@ -33,7 +33,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])
     render json: @account, serializer: REST::RelationshipSerializer, relationships: relationships
   end
 
This page took 0.023812 seconds and 3 git commands to generate.