mirror of
https://github.com/discourse/discourse.git
synced 2025-08-21 19:11:18 +08:00
FEATURE: digests choose topics you're watching or tracking first
This commit is contained in:
parent
a644602612
commit
7195a103ab
3 changed files with 12 additions and 2 deletions
|
@ -52,7 +52,7 @@ module TopicQuerySQL
|
|||
end
|
||||
|
||||
def order_top_with_notification_levels(score)
|
||||
"COALESCE(category_users.notification_level, 1) DESC, COALESCE(top_topics.#{score}, 0) DESC, topics.bumped_at DESC"
|
||||
"COALESCE(topic_users.notification_level, 1) DESC, COALESCE(category_users.notification_level, 1) DESC, COALESCE(top_topics.#{score}, 0) DESC, topics.bumped_at DESC"
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue