mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
BUGFIX: make sure we only show topics that have a useful score in the Top page
This commit is contained in:
@@ -88,6 +88,7 @@ class TopicQuery
|
||||
score = "#{period}_score"
|
||||
create_list(:top, unordered: true) do |topics|
|
||||
topics.joins(:top_topic)
|
||||
.where("top_topics.#{score} > 1")
|
||||
.order("top_topics.#{score} DESC, topics.bumped_at DESC")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user