match how map follow works
This commit is contained in:
parent
df943f31b9
commit
91f3ec5e0a
1 changed files with 5 additions and 2 deletions
|
@ -165,11 +165,14 @@ class TopicsController < ApplicationController
|
|||
|
||||
respond_to do |format|
|
||||
format.json do
|
||||
head :ok if follow
|
||||
if follow
|
||||
head :ok
|
||||
else
|
||||
head :bad_request
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# POST topics/:id/unfollow
|
||||
def unfollow
|
||||
|
|
Loading…
Add table
Reference in a new issue