This commit is contained in:
albert
2013-02-27 00:02:34 -08:00
parent 568eaa1f18
commit a1c8257b29
2 changed files with 1 additions and 11 deletions

View File

@@ -357,7 +357,7 @@ class User < ActiveRecord::Base
module ForumMethods
def has_forum_been_updated?
return false unless is_privileged?
newest_topic = ForumPost.order("updated_at desc").first
newest_topic = ForumTopic.order("updated_at desc").first
return false if newest_topic.nil?
return true if last_forum_read_at.nil?
return newest_topic.updated_at > last_forum_read_at