mirror of
https://github.com/discourse/discourse.git
synced 2025-07-02 02:35:34 +08:00
Don't include closed or archived topics in the "new topics" section of the daily digest
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user