mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +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
1 changed files with 1 additions and 0 deletions
|
@ -151,6 +151,7 @@ class Topic < ActiveRecord::Base
|
||||||
def self.new_topics(since)
|
def self.new_topics(since)
|
||||||
Topic
|
Topic
|
||||||
.visible
|
.visible
|
||||||
|
.where(closed: false, archived: false)
|
||||||
.created_since(since)
|
.created_since(since)
|
||||||
.listable_topics
|
.listable_topics
|
||||||
.topic_list_order
|
.topic_list_order
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue