about summary refs log tree commit diff
path: root/app/controllers/api
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-07-10 10:29:34 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-07-10 03:29:34 +0200
commitf8212da329cf857478746c23314e5c662cd490e3 (patch)
treeeedd07ed08fef7ff070c7ceb796bde7563ecaed7 /app/controllers/api
parent4122a837fadf8cf59712b5c1790ac0af96bcbc84 (diff)
Add attribute for default privacy to verify credentials (#4075)
* Add attribute for default privacy to verify credentials

* add raw_note

* source
Diffstat (limited to 'app/controllers/api')
-rw-r--r--app/controllers/api/v1/accounts/credentials_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/api/v1/accounts/credentials_controller.rb b/app/controllers/api/v1/accounts/credentials_controller.rb
index 8ee9a2416..073808532 100644
--- a/app/controllers/api/v1/accounts/credentials_controller.rb
+++ b/app/controllers/api/v1/accounts/credentials_controller.rb
@@ -6,13 +6,13 @@ class Api::V1::Accounts::CredentialsController < Api::BaseController
 
   def show
     @account = current_account
-    render json: @account, serializer: REST::AccountSerializer
+    render json: @account, serializer: REST::CredentialAccountSerializer
   end
 
   def update
     current_account.update!(account_params)
     @account = current_account
-    render json: @account, serializer: REST::AccountSerializer
+    render json: @account, serializer: REST::CredentialAccountSerializer
   end
 
   private