Merge pull request #4556 from nonamethanks/fix_unban

Post unbans: fix typo
This commit is contained in:
evazion
2020-08-07 09:59:44 -05:00
committed by GitHub

View File

@@ -32,7 +32,7 @@ module Moderator
def unban
@post = authorize ::Post.find(params[:id])
@post.unban!
flash[:notice] = "Post was banned"
flash[:notice] = "Post was unbanned"
respond_with(@post)
end