Add default federation option to settings

This commit is contained in:
Renato "Lond" Cerqueira
2018-10-01 19:32:47 +02:00
parent 9d6e005849
commit d42a06fc74
11 changed files with 18 additions and 3 deletions

View File

@ -38,6 +38,7 @@ class InitialStateSerializer < ActiveModel::Serializer
store[:me] = object.current_account.id.to_s
store[:default_privacy] = object.current_account.user.setting_default_privacy
store[:default_sensitive] = object.current_account.user.setting_default_sensitive
store[:default_federation] = object.current_account.user.setting_default_federation
end
store[:text] = object.text if object.text

View File

@ -10,6 +10,7 @@ class REST::CredentialAccountSerializer < REST::AccountSerializer
privacy: user.setting_default_privacy,
sensitive: user.setting_default_sensitive,
language: user.setting_default_language,
federation: user.setting_default_federation,
note: object.note,
fields: object.fields.map(&:to_h),
}