Fix comment posting.
This commit is contained in:
parent
b1e4fd0094
commit
3abf537eaa
2 changed files with 25 additions and 1 deletions
|
@ -31,7 +31,7 @@ module Refinery
|
|||
end
|
||||
|
||||
def comment
|
||||
if (@comment = @post.comments.create(params[comment])).valid?
|
||||
if (@comment = @post.comments.create(params[:comment])).valid?
|
||||
if Comment::Moderation.enabled? or @comment.ham?
|
||||
begin
|
||||
CommentMailer.notification(@comment, request).deliver
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue