fixes #4080: Status code 500 when disapproving through API

This commit is contained in:
Albert Yi
2019-05-17 12:09:03 -07:00
parent 04edc3f533
commit 0a058dd52b
2 changed files with 10 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ module Moderator
def create
cookies.permanent[:moderated] = Time.now.to_i
@post_disapproval = PostDisapproval.create(post_disapproval_params)
respond_with(@post_disapproval)
respond_with(@post_disapproval, location: moderator_post_disapprovals_path)
end
def index