From 53134c0d198e520a6fb90fede9d9ffaa852cdd29 Mon Sep 17 00:00:00 2001 From: Toks Date: Fri, 30 May 2014 14:21:18 -0400 Subject: [PATCH] Revert 57f82182a86245462dc6a50ae0620c577f304fc3 --- app/models/forum_topic.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/forum_topic.rb b/app/models/forum_topic.rb index 68f0001c0..7dfb7ff5c 100644 --- a/app/models/forum_topic.rb +++ b/app/models/forum_topic.rb @@ -106,7 +106,6 @@ class ForumTopic < ActiveRecord::Base end def read_by?(user, read_forum_topic_ids) - return true if user.last_forum_read_at && updated_at < user.last_forum_read_at if read_forum_topic_ids.any? {|topic_id, timestamp| id.to_s == topic_id && updated_at.to_i > timestamp.to_i} return false end @@ -114,6 +113,7 @@ class ForumTopic < ActiveRecord::Base return true end return false if user.last_forum_read_at.nil? + return true if updated_at < user.last_forum_read_at return false end