0
0
Fork 0

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:
Eugen Rochko 2018-05-02 15:57:37 +02:00 committed by GitHub
parent f62539ce5c
commit cae933510c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View file

@ -273,6 +273,10 @@ class Account < ApplicationRecord
@value = attr['value']
@errors = {}
end
def to_h
{ name: @name, value: @value }
end
end
class << self