From 7378029b49ea55bc1ca9ed3edafe941a7d1597d6 Mon Sep 17 00:00:00 2001 From: yocchan-git Date: Sun, 24 Mar 2024 12:18:22 +0900 Subject: [PATCH] =?UTF-8?q?no=5Fcontent=E3=82=92=E4=BD=BF=E3=81=86?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB=E4=BF=AE=E6=AD=A3=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/api/followings_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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