discourse/plugins/chat/app/serializers/chat_channel_search_seriali...

10 lines
205 B
Ruby

# frozen_string_literal: true
class ChatChannelSearchSerializer < StructuredChannelSerializer
has_many :users, serializer: BasicUserSerializer, embed: :objects
def users
object[:users]
end
end