A platform for community discussion. Free, open, simple.
FIX: We shouldn't include topics when mobile view is enabled
Robin Ward2feadcdafb50
diff --git a/app/controllers/categories_controller.rb b/app/controllers/categories_controller.rbindex 9fa1c0d12e0..4edc32c5600 100644--- a/app/controllers/categories_controller.rb+++ b/app/controllers/categories_controller.rb@@ -307,11 +307,11 @@ class CategoriesController < ApplicationControllerdef include_topics(parent_category = nil)style = SiteSetting.desktop_category_page_style- view_context.mobile_view? ||- params[:include_topics] ||+ !view_context.mobile_view? &&+ (params[:include_topics] ||(parent_category && parent_category.subcategory_list_includes_topics?) ||style == "categories_with_featured_topics".freeze ||style == "categories_boxes_with_topics".freeze ||- style == "categories_with_top_topics".freeze+ style == "categories_with_top_topics".freeze)endend