mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: /categories page on mobile
This commit is contained in:
@@ -10,6 +10,12 @@ class CategoryDetailedSerializer < BasicCategorySerializer
|
||||
:is_uncategorized,
|
||||
:subcategory_ids
|
||||
|
||||
has_many :displayable_topics, serializer: ListableTopicSerializer, embed: :objects, key: :topics
|
||||
|
||||
def include_displayable_topics?
|
||||
displayable_topics.present?
|
||||
end
|
||||
|
||||
def is_uncategorized
|
||||
object.id == SiteSetting.uncategorized_category_id
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user