mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
FEATURE: experiment with hot sort order (#25274)
This introduces a new experimental hot sort ordering. It attempts to float top conversations by first prioritizing a topics with lots of recent activity (likes and users responding) The schedule that updates hot topics is disabled unless the hidden site setting: `experimental_hot_topics` is enabled. You can control "decay" with `hot_topic_gravity` and `recency` with `hot_topics_recent_days` Data is stored in the new `topic_hot_scores` table and you can check it out on the `/hot` route once enabled. --------- Co-authored-by: Penar Musaraj <pmusaraj@gmail.com>
This commit is contained in:
@ -313,11 +313,11 @@ module Discourse
|
||||
end
|
||||
|
||||
def self.filters
|
||||
@filters ||= %i[latest unread new unseen top read posted bookmarks]
|
||||
@filters ||= %i[latest unread new unseen top read posted bookmarks hot]
|
||||
end
|
||||
|
||||
def self.anonymous_filters
|
||||
@anonymous_filters ||= %i[latest top categories]
|
||||
@anonymous_filters ||= %i[latest top categories hot]
|
||||
end
|
||||
|
||||
def self.top_menu_items
|
||||
|
Reference in New Issue
Block a user