diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-05-02 15:57:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-02 15:57:37 +0200 |
commit | cae933510cbc64db27aeb44e205ce17ff4974da7 (patch) | |
tree | e009754d98cddbe43b53f0c3e05ee4376749b50d /app/controllers | |
parent | f62539ce5c106e27a371702d499ec4df52eccde6 (diff) |
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
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/api/v1/accounts/credentials_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/accounts/credentials_controller.rb b/app/controllers/api/v1/accounts/credentials_controller.rb index 062d490a7..a3c4008e6 100644 --- a/app/controllers/api/v1/accounts/credentials_controller.rb +++ b/app/controllers/api/v1/accounts/credentials_controller.rb @@ -21,7 +21,7 @@ class Api::V1::Accounts::CredentialsController < Api::BaseController private def account_params - params.permit(:display_name, :note, :avatar, :header, :locked) + params.permit(:display_name, :note, :avatar, :header, :locked, fields_attributes: [:name, :value]) end def user_settings_params |