f8212da329
* Add attribute for default privacy to verify credentials * add raw_note * source
14 lines
247 B
Ruby
14 lines
247 B
Ruby
# frozen_string_literal: true
|
|
|
|
class REST::CredentialAccountSerializer < REST::AccountSerializer
|
|
attributes :source
|
|
|
|
def source
|
|
user = object.user
|
|
{
|
|
privacy: user.setting_default_privacy,
|
|
note: object.note,
|
|
}
|
|
end
|
|
end
|