mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 07:56:01 +08:00
Revert "FIX: We shouldn't include topics when mobile view is enabled"
This reverts commit 2feadcdafb5095024b1403246e6ae5e5fd017830.
This commit is contained in:
@ -307,11 +307,11 @@ class CategoriesController < ApplicationController
|
|||||||
|
|
||||||
def include_topics(parent_category = nil)
|
def include_topics(parent_category = nil)
|
||||||
style = SiteSetting.desktop_category_page_style
|
style = SiteSetting.desktop_category_page_style
|
||||||
!view_context.mobile_view? &&
|
view_context.mobile_view? ||
|
||||||
(params[:include_topics] ||
|
params[:include_topics] ||
|
||||||
(parent_category && parent_category.subcategory_list_includes_topics?) ||
|
(parent_category && parent_category.subcategory_list_includes_topics?) ||
|
||||||
style == "categories_with_featured_topics".freeze ||
|
style == "categories_with_featured_topics".freeze ||
|
||||||
style == "categories_boxes_with_topics".freeze ||
|
style == "categories_boxes_with_topics".freeze ||
|
||||||
style == "categories_with_top_topics".freeze)
|
style == "categories_with_top_topics".freeze
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user