mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 04:34:13 -06:00
Merge pull request #229 from danneu/topic-patch
make topics consume their own scope
This commit is contained in:
commit
e2fed6fcef
@ -147,11 +147,11 @@ class Topic < ActiveRecord::Base
|
|||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
|
||||||
# Returns new topics since a date
|
# Returns new topics since a date for display in email digest.
|
||||||
def self.new_topics(since)
|
def self.new_topics(since)
|
||||||
Topic
|
Topic
|
||||||
.visible
|
.visible
|
||||||
.where("created_at >= ?", since)
|
.created_since(since)
|
||||||
.listable_topics
|
.listable_topics
|
||||||
.topic_list_order
|
.topic_list_order
|
||||||
.includes(:user)
|
.includes(:user)
|
||||||
|
Loading…
Reference in New Issue
Block a user