Don't include closed or archived topics in the "new topics" section of the daily digest

This commit is contained in:
Robin Ward 2013-03-05 17:21:32 -05:00
parent 030857ac8c
commit 3c1388bbd7

View file

@ -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