From 3c1388bbd74052dcb61412ee5629410e280e29b2 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 5 Mar 2013 17:21:32 -0500 Subject: [PATCH] Don't include closed or archived topics in the "new topics" section of the daily digest --- app/models/topic.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/topic.rb b/app/models/topic.rb index 478cbc35bed..331496cc7a3 100644 --- a/app/models/topic.rb +++ b/app/models/topic.rb @@ -151,6 +151,7 @@ class Topic < ActiveRecord::Base def self.new_topics(since) Topic .visible + .where(closed: false, archived: false) .created_since(since) .listable_topics .topic_list_order