mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:21:18 +08:00
FIX: /categories page on mobile
This commit is contained in:
@ -16,7 +16,10 @@ class CategoriesController < ApplicationController
|
||||
|
||||
@description = SiteSetting.site_description
|
||||
|
||||
category_options = { is_homepage: current_homepage == "categories".freeze }
|
||||
category_options = {
|
||||
is_homepage: current_homepage == "categories".freeze,
|
||||
include_topics: view_context.mobile_view? || params[:include_topics]
|
||||
}
|
||||
|
||||
@category_list = CategoryList.new(guardian, category_options)
|
||||
@category_list.draft_key = Draft::NEW_TOPIC
|
||||
|
Reference in New Issue
Block a user