mirror of
https://github.com/mastodon/mastodon.git
synced 2025-02-09 10:48:25 +01:00
Expose in account serializer
This commit is contained in:
parent
497670211c
commit
b0bbb7f663
@ -6,8 +6,8 @@ class REST::AccountSerializer < ActiveModel::Serializer
|
|||||||
|
|
||||||
# Please update `app/javascript/mastodon/api_types/accounts.ts` when making changes to the attributes
|
# Please update `app/javascript/mastodon/api_types/accounts.ts` when making changes to the attributes
|
||||||
|
|
||||||
attributes :id, :username, :acct, :display_name, :locked, :bot, :discoverable, :indexable, :group, :created_at,
|
attributes :id, :username, :acct, :display_name, :locked, :bot, :discoverable, :indexable, :attribution_domains,
|
||||||
:note, :url, :uri, :avatar, :avatar_static, :header, :header_static,
|
:group, :created_at, :note, :url, :uri, :avatar, :avatar_static, :header, :header_static,
|
||||||
:followers_count, :following_count, :statuses_count, :last_status_at, :hide_collections
|
:followers_count, :following_count, :statuses_count, :last_status_at, :hide_collections
|
||||||
|
|
||||||
has_one :moved_to_account, key: :moved, serializer: REST::AccountSerializer, if: :moved_and_not_nested?
|
has_one :moved_to_account, key: :moved, serializer: REST::AccountSerializer, if: :moved_and_not_nested?
|
||||||
|
@ -18,7 +18,6 @@ class REST::CredentialAccountSerializer < REST::AccountSerializer
|
|||||||
hide_collections: object.hide_collections,
|
hide_collections: object.hide_collections,
|
||||||
discoverable: object.discoverable,
|
discoverable: object.discoverable,
|
||||||
indexable: object.indexable,
|
indexable: object.indexable,
|
||||||
attribution_domains: object.attribution_domains,
|
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user