Add default federation option to settings
This commit is contained in:
@ -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
|
||||
|
||||
@ -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),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user