mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: Don't sort the new topics by score since the Top logic is already
sorting them by score.
This commit is contained in:
parent
564b1d86b0
commit
fd4007eefc
2 changed files with 2 additions and 5 deletions
|
@ -272,8 +272,9 @@ class Topic < ActiveRecord::Base
|
|||
.where("COALESCE(topic_users.notification_level, 1) <> ?", TopicUser.notification_levels[:muted])
|
||||
.created_since(since)
|
||||
.listable_topics
|
||||
.includes(:category)
|
||||
.order(TopicQuerySQL.order_top_for(score))
|
||||
.limit(100)
|
||||
.limit(20)
|
||||
|
||||
# Remove category topics
|
||||
category_topic_ids = Category.pluck(:topic_id).compact!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue