mirror of
https://github.com/discourse/discourse.git
synced 2025-03-03 09:49:42 +00:00
FIX: navigating back to latest was not respecting pinned topics
This commit is contained in:
parent
22d0f2ef8a
commit
8a0a87812b
@ -186,7 +186,7 @@ class TopicQuery
|
||||
topics = yield(topics) if block_given?
|
||||
|
||||
options = options.merge(@options)
|
||||
if (options[:order] || "activity") == "activity" && !options[:unordered]
|
||||
if ["activity","default"].include?(options[:order] || "activity") && !options[:unordered]
|
||||
topics = prioritize_pinned_topics(topics, options)
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user