Allow updating bio fields via PUT /api/v1/accounts/update_credentials (#7288)
Add raw bio fields to the source attribute on GET /api/v1/accounts/verify_credentials
This commit is contained in:
parent
f62539ce5c
commit
cae933510c
3 changed files with 7 additions and 1 deletions
|
@ -5,10 +5,12 @@ class REST::CredentialAccountSerializer < REST::AccountSerializer
|
|||
|
||||
def source
|
||||
user = object.user
|
||||
|
||||
{
|
||||
privacy: user.setting_default_privacy,
|
||||
sensitive: user.setting_default_sensitive,
|
||||
note: object.note,
|
||||
fields: object.fields.map(&:to_h),
|
||||
}
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue