Permalink
Browse files

Fixed some logic on unread comments

  • Loading branch information...
1 parent 5661741 commit 6f9973d4d9724d6d70111ccb66ff92105ad6b4ff @spob committed Mar 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/topic.rb
View
@@ -158,7 +158,7 @@ def unread_comment? user
read = UserTopicRead.find_by_user_id_and_topic_id(user.id, id)
return false if last_comment.nil? # should never occur
return true if read.nil?
- read.updated_at < last_posting_date
+ read.updated_at < last_commented_at
end
def add_user_read user, update_view_count=true

0 comments on commit 6f9973d

Please sign in to comment.