diff --git a/lib/topic_query.rb b/lib/topic_query.rb index ceb341ba5ca..3af501558c9 100644 --- a/lib/topic_query.rb +++ b/lib/topic_query.rb @@ -246,7 +246,7 @@ class TopicQuery end result = apply_ordering(result, options) - result = result.listable_topics.includes(category: :topic_only_relative_url) + result = result.listable_topics.includes(:category) result = result.where('categories.name is null or categories.name <> ?', options[:exclude_category]).references(:categories) if options[:exclude_category] # Don't include the category topics if excluded