Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed some logic on unread comments

  • Loading branch information...
commit 6f9973d4d9724d6d70111ccb66ff92105ad6b4ff 1 parent 5661741
@spob authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/models/topic.rb
View
2  app/models/topic.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.