mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
Don't include closed or archived topics in the "new topics" section of the daily digest
This commit is contained in:
parent
030857ac8c
commit
3c1388bbd7
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue