mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
glyph in secure categories to the right, like pms
This commit is contained in:
@@ -8,6 +8,7 @@ class BasicCategorySerializer < ApplicationSerializer
|
||||
:topic_count,
|
||||
:description,
|
||||
:topic_url,
|
||||
:hotness
|
||||
:hotness,
|
||||
:secure
|
||||
|
||||
end
|
||||
|
||||
@@ -128,6 +128,7 @@ class TopicViewSerializer < ApplicationSerializer
|
||||
def categoryName
|
||||
object.topic.category.name
|
||||
end
|
||||
|
||||
def include_categoryName?
|
||||
object.topic.category.present?
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user