mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
category stats shouldn't include deleted topics.
This commit is contained in:
@@ -167,7 +167,11 @@ class Topic < ActiveRecord::Base
|
||||
def self.visible
|
||||
where(visible: true)
|
||||
end
|
||||
|
||||
|
||||
def self.created_since(time_ago)
|
||||
where("created_at > ?", time_ago)
|
||||
end
|
||||
|
||||
def private_message?
|
||||
self.archetype == Archetype.private_message
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user