From 91f3ec5e0ae1b8f0754748ffc59e7d7b433c6b87 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Wed, 15 Feb 2017 22:59:23 -0500 Subject: [PATCH] match how map follow works --- app/controllers/topics_controller.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/controllers/topics_controller.rb b/app/controllers/topics_controller.rb index d592f9dd..779e11cf 100644 --- a/app/controllers/topics_controller.rb +++ b/app/controllers/topics_controller.rb @@ -165,8 +165,11 @@ class TopicsController < ApplicationController respond_to do |format| format.json do - head :ok if follow - head :bad_request + if follow + head :ok + else + head :bad_request + end end end end