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…
Reference in New Issue