mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Add a way to flag a topic
This commit is contained in:
@@ -12,6 +12,7 @@ class SiteSerializer < ApplicationSerializer
|
||||
|
||||
has_many :categories, serializer: BasicCategorySerializer, embed: :objects
|
||||
has_many :post_action_types, embed: :objects
|
||||
has_many :topic_flag_types, serializer: TopicFlagTypeSerializer, embed: :objects
|
||||
has_many :trust_levels, embed: :objects
|
||||
has_many :archetypes, embed: :objects, serializer: ArchetypeSerializer
|
||||
|
||||
@@ -31,7 +32,7 @@ class SiteSerializer < ApplicationSerializer
|
||||
def periods
|
||||
TopTopic.periods.map(&:to_s)
|
||||
end
|
||||
|
||||
|
||||
def top_menu_items
|
||||
Discourse.top_menu_items.map(&:to_s)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user