mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 03:43:39 +08:00
fix logic for when to include topics in category list
This commit is contained in:
parent
9573e28df9
commit
d06e2793aa
|
@ -16,9 +16,9 @@ class CategoriesController < ApplicationController
|
||||||
|
|
||||||
@description = SiteSetting.site_description
|
@description = SiteSetting.site_description
|
||||||
|
|
||||||
include_topics = view_context.mobile_view?
|
include_topics = view_context.mobile_view? ||
|
||||||
include_topics ||= SiteSetting.category_page_style == "categories_with_featured_topics".freeze
|
params[:include_topics] ||
|
||||||
include_topics ||= params[:include_topics]
|
SiteSetting.category_page_style == "categories_with_featured_topics".freeze
|
||||||
|
|
||||||
category_options = {
|
category_options = {
|
||||||
is_homepage: current_homepage == "categories".freeze,
|
is_homepage: current_homepage == "categories".freeze,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user