Fix #4318: Flags and appeals should reload page.

This commit is contained in:
evazion
2020-03-03 22:38:43 -06:00
parent 266e4054b0
commit 95e11e0ffc
4 changed files with 4 additions and 14 deletions

View File

@@ -21,6 +21,7 @@ class PostFlagsController < ApplicationController
def create
@post_flag = PostFlag.create(post_flag_params.merge(creator: CurrentUser.user))
flash[:notice] = @post_flag.errors.none? ? "Post flagged" : @post_flag.errors.full_messages.join("; ")
respond_with(@post_flag)
end