Permalink
Browse files

Fixing up spam handling on comments

  • Loading branch information...
1 parent 7bc62aa commit 68aedc72b863f6013764d7cf48ff7963634479e0 @redinger committed Sep 18, 2009
Showing with 3 additions and 1 deletion.
  1. +3 −1 app/models/comment_activity.rb
@@ -23,7 +23,9 @@ def find_recent
).collect {|post|
CommentActivity.new(post)
}.sort_by {|activity|
- activity.most_recent_comment.created_at
+ activity.comments.any? ?
+ activity.most_recent_comment.created_at :
+ activity.post.created_at
}.reverse
end
end

0 comments on commit 68aedc7

Please sign in to comment.