mirror of
https://github.com/discourse/discourse.git
synced 2025-03-02 09:19:22 +00:00
19 lines
456 B
Ruby
19 lines
456 B
Ruby
# frozen_string_literal: true
|
|
|
|
class UserChatChannelMembershipSerializer < ApplicationSerializer
|
|
attributes :following,
|
|
:muted,
|
|
:desktop_notification_level,
|
|
:mobile_notification_level,
|
|
:chat_channel_id,
|
|
:last_read_message_id,
|
|
:unread_count,
|
|
:unread_mentions
|
|
|
|
has_one :user, serializer: BasicUserSerializer, embed: :objects
|
|
|
|
def user
|
|
object.user
|
|
end
|
|
end
|