about summary refs log tree commit diff
path: root/app/serializers/rest
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-07-10 21:00:32 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-07-10 14:00:32 +0200
commit2b9721d1b38319d70bed98e76a0fe1d648780298 (patch)
tree4e1994def2b461c88b86eea164aa1223069878fb /app/serializers/rest
parent617208053c2bf935d2dd3944bb2b9192a388f0b4 (diff)
Add setting a always mark media as sensitive (#4136)
Diffstat (limited to 'app/serializers/rest')
-rw-r--r--app/serializers/rest/credential_account_serializer.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/serializers/rest/credential_account_serializer.rb b/app/serializers/rest/credential_account_serializer.rb
index 094b831c9..870d8b71f 100644
--- a/app/serializers/rest/credential_account_serializer.rb
+++ b/app/serializers/rest/credential_account_serializer.rb
@@ -7,6 +7,7 @@ class REST::CredentialAccountSerializer < REST::AccountSerializer
     user = object.user
     {
       privacy: user.setting_default_privacy,
+      sensitive: user.setting_default_sensitive,
       note: object.note,
     }
   end