|
|
@ -49,7 +49,7 @@ class Api::V1::AccountsController < Api::BaseController
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def mute
|
|
|
|
def mute
|
|
|
|
MuteService.new.call(current_user.account, @account, notifications: truthy_param?(:notifications), duration: (params[:duration]&.to_i || 0))
|
|
|
|
MuteService.new.call(current_user.account, @account, notifications: truthy_param?(:notifications), duration: params[:duration].to_i)
|
|
|
|
render json: @account, serializer: REST::RelationshipSerializer, relationships: relationships
|
|
|
|
render json: @account, serializer: REST::RelationshipSerializer, relationships: relationships
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|