mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
FEATURE: subcategories can be discovered by web crawlers on page 1 of the parent category topics list
This commit is contained in:
@ -294,6 +294,10 @@ class ListController < ApplicationController
|
||||
|
||||
@description_meta = @category.description_text
|
||||
raise Discourse::NotFound unless guardian.can_see?(@category)
|
||||
|
||||
if use_crawler_layout?
|
||||
@subcategories = @category.subcategories.select { |c| guardian.can_see?(c) }
|
||||
end
|
||||
end
|
||||
|
||||
def build_topic_list_options
|
||||
|
Reference in New Issue
Block a user