FIX: navigating back to latest was not respecting pinned topics

This commit is contained in:
Sam Saffron 2015-10-14 12:57:06 +11:00
parent 22d0f2ef8a
commit 8a0a87812b
1 changed files with 1 additions and 1 deletions

View File

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