2
0
Fork 0
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:
Neil Lalonde 2016-08-18 17:16:52 -04:00
parent a644602612
commit 7195a103ab
3 changed files with 12 additions and 2 deletions

View file

@ -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