diff options
author | Starfall <us@starfall.systems> | 2021-01-13 13:39:46 -0600 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2021-01-13 13:39:46 -0600 |
commit | 65263e6309fb4dea1a93d4b4806af629d317c156 (patch) | |
tree | 8a142dea5cc3d4081f551c02e953976d3c0930bf /app/controllers/api/v1/accounts_controller.rb | |
parent | 29227b32e150894e15098bcf216b1f5c08763200 (diff) | |
parent | a7a47834e50645746355e2b9a88244c1804c73cd (diff) |
Merge branch 'glitch' into main
Diffstat (limited to 'app/controllers/api/v1/accounts_controller.rb')
-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 3e66ff212..953874e1a 100644 --- a/app/controllers/api/v1/accounts_controller.rb +++ b/app/controllers/api/v1/accounts_controller.rb @@ -42,7 +42,7 @@ class Api::V1::AccountsController < Api::BaseController end def mute - MuteService.new.call(current_user.account, @account, notifications: truthy_param?(:notifications), duration: (params[:duration] || 0)) + MuteService.new.call(current_user.account, @account, notifications: truthy_param?(:notifications), duration: (params[:duration]&.to_i || 0)) render json: @account, serializer: REST::RelationshipSerializer, relationships: relationships end |