mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 04:08:41 +08:00
Work in progress (up till about?)
This commit is contained in:
@ -345,8 +345,8 @@ class Topic < ActiveRecord::Base
|
||||
custom_fields[key.to_s]
|
||||
end
|
||||
|
||||
def self.listable_count_per_day(sinceDaysAgo=30)
|
||||
listable_topics.where('created_at > ?', sinceDaysAgo.days.ago).group('date(created_at)').order('date(created_at)').count
|
||||
def self.listable_count_per_day(start_date, end_date)
|
||||
listable_topics.where('created_at >= ? and created_at < ?', start_date, end_date).group('date(created_at)').order('date(created_at)').count
|
||||
end
|
||||
|
||||
def private_message?
|
||||
|
Reference in New Issue
Block a user