2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-08-21 19:11:18 +08:00

Use "Top" logic for digest emails. Leave out muted categories.

This commit is contained in:
Robin Ward 2014-04-17 15:14:54 -04:00
parent 2341118570
commit 89aa2380c6
2 changed files with 13 additions and 3 deletions

View file

@ -46,7 +46,7 @@ module TopicQuerySQL
end
def order_top_for(score)
"top_topics.#{score} DESC, topics.bumped_at DESC"
"COALESCE(top_topics.#{score}, 0) DESC, topics.bumped_at DESC"
end
def order_top_with_pinned_category_for(score)