mirror of
https://github.com/discourse/discourse.git
synced 2025-04-25 15:04:28 +08: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
@ -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…
x
Reference in New Issue
Block a user