mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
Dashboard: split out private messages from topic and post counts; re-enable report_spec because I think I fixed it...
This commit is contained in:
@ -192,8 +192,8 @@ class Topic < ActiveRecord::Base
|
||||
where("created_at > ?", time_ago)
|
||||
end
|
||||
|
||||
def self.count_per_day(since=30.days.ago)
|
||||
where('created_at > ?', since).group('date(created_at)').order('date(created_at)').count
|
||||
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
|
||||
end
|
||||
|
||||
def private_message?
|
||||
|
Reference in New Issue
Block a user