mirror of
https://github.com/discourse/discourse.git
synced 2025-03-24 17:05:35 +08:00
Fix topics_year, topics_month, topics_week for uncategorized category
This commit is contained in:
parent
3f2907a924
commit
1145e4bfd9
@ -111,7 +111,7 @@ class Category < ActiveRecord::Base
|
||||
topics = Topic
|
||||
.select("COUNT(*) topic_count")
|
||||
.where("topics.category_id = categories.id")
|
||||
.where("categories.topic_id <> topics.id")
|
||||
.where("categories.topic_id <> topics.id OR categories.topic_id is null")
|
||||
.visible
|
||||
|
||||
topics_with_post_count = Topic
|
||||
|
Loading…
x
Reference in New Issue
Block a user