diff --git a/app/models/topic.rb b/app/models/topic.rb index 4df1c928a54..db8a756127b 100644 --- a/app/models/topic.rb +++ b/app/models/topic.rb @@ -147,11 +147,11 @@ class Topic < ActiveRecord::Base false end - # Returns new topics since a date + # Returns new topics since a date for display in email digest. def self.new_topics(since) Topic .visible - .where("created_at >= ?", since) + .created_since(since) .listable_topics .topic_list_order .includes(:user)