From f694c780c6ba622708e84586b808b01f5a8b46e6 Mon Sep 17 00:00:00 2001 From: Toks Date: Thu, 1 Oct 2015 14:07:17 -0400 Subject: [PATCH] Forum activity indicator: don't count deleted topics as unread --- app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index 2f8c1ba6a..34e89792c 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -449,7 +449,7 @@ class User < ActiveRecord::Base module ForumMethods def has_forum_been_updated? return false unless is_gold? - max_updated_at = ForumTopic.maximum(:updated_at) + max_updated_at = ForumTopic.active.maximum(:updated_at) return false if max_updated_at.nil? return true if last_forum_read_at.nil? return max_updated_at > last_forum_read_at