Expose in account serializer

This commit is contained in:
Christian Schmidt 2024-11-13 18:10:26 +01:00
parent 497670211c
commit b0bbb7f663
2 changed files with 2 additions and 3 deletions

View File

@ -6,8 +6,8 @@ class REST::AccountSerializer < ActiveModel::Serializer
# 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,
:note, :url, :uri, :avatar, :avatar_static, :header, :header_static,
attributes :id, :username, :acct, :display_name, :locked, :bot, :discoverable, :indexable, :attribution_domains,
:group, :created_at, :note, :url, :uri, :avatar, :avatar_static, :header, :header_static,
: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?

View File

@ -18,7 +18,6 @@ class REST::CredentialAccountSerializer < REST::AccountSerializer
hide_collections: object.hide_collections,
discoverable: object.discoverable,
indexable: object.indexable,
attribution_domains: object.attribution_domains,
}
end