match how map follow works
This commit is contained in:
parent
df943f31b9
commit
91f3ec5e0a
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue