diff --git a/app/controllers/api/followings_controller.rb b/app/controllers/api/followings_controller.rb index 3408aad48b6..02664c36fe3 100644 --- a/app/controllers/api/followings_controller.rb +++ b/app/controllers/api/followings_controller.rb @@ -7,7 +7,7 @@ def create user = User.find(params[:id]) watch = params[:watch] == 'true' if current_user.follow(user, watch:) - head :ok + head :no_content else head :bad_request end @@ -17,7 +17,7 @@ def update user = User.find(params[:id]) watch = params[:watch] == 'true' if current_user.change_watching(user, watch) - head :ok + head :no_content else head :bad_request end @@ -26,7 +26,7 @@ def update def destroy user = User.find(params[:id]) if current_user.unfollow(user) - head :ok + head :no_content else head :bad_request end