mirror of
https://github.com/mastodon/mastodon
synced 2024-11-28 06:48:28 +09:00
Fix unserialized role
on account entities in admin API (#23290)
This commit is contained in:
parent
1708167dd3
commit
d3f3810fe1
@ -2,7 +2,7 @@
|
||||
|
||||
class REST::Admin::AccountSerializer < ActiveModel::Serializer
|
||||
attributes :id, :username, :domain, :created_at,
|
||||
:email, :ip, :role, :confirmed, :suspended,
|
||||
:email, :ip, :confirmed, :suspended,
|
||||
:silenced, :sensitized, :disabled, :approved, :locale,
|
||||
:invite_request
|
||||
|
||||
@ -11,6 +11,7 @@ class REST::Admin::AccountSerializer < ActiveModel::Serializer
|
||||
|
||||
has_many :ips, serializer: REST::Admin::IpSerializer
|
||||
has_one :account, serializer: REST::AccountSerializer
|
||||
has_one :role, serializer: REST::RoleSerializer
|
||||
|
||||
def id
|
||||
object.id.to_s
|
||||
|
Loading…
Reference in New Issue
Block a user