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:
parent
2341118570
commit
89aa2380c6
2 changed files with 13 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue