import { Serializer } from '../../models'


export function addSerializer() {
  return new Serializer("subscribers", {
    select: ['id', 'username', 'screenName', 'type', 'updatedAt', 'createdAt',
             'isPrivate', 'isRestricted', 'profilePictureLargeUrl', 'profilePictureMediumUrl']
  })
}

import { Serializer, AdminSerializer } from '../../models'


export function addSerializer() {
  return new Serializer("subscribers", {
    select: ['id', 'username', 'screenName', 'type', 'updatedAt', 'createdAt',
             'isPrivate', 'isRestricted', 'profilePictureLargeUrl', 'profilePictureMediumUrl',
             'administrators'],
    administrators: { through: AdminSerializer, embed: true }
  })
}

Add admins of subscribed groups to /users/whoami
Add admins of subscribed groups to /users/whoami

It's the same info we send out in a /timelines/groupname response
(in the `users` object). We need it in /whoami for the "feed selector"
(list of recipients we can post to).
