Skip to content

Commit

Permalink
Mark new comments as published. Closes #946
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.typosphere.org/typo/trunk@1061 820eb932-12ee-0310-9ca8-eeb645f39767
  • Loading branch information
scott committed Jun 25, 2006
1 parent 864bf47 commit 17b26aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/admin/comments_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ def new
@comment = @article.comments.build(params[:comment])

if request.post? and @comment.save
# We should probably wave a spam filter over this, but for now, just mark it as published.
@comment.published = true
flash[:notice] = 'Comment was successfully created.'
redirect_to :action => 'show', :id => @comment.id
end
Expand Down

0 comments on commit 17b26aa

Please sign in to comment.