mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-11 17:53:45 +00:00
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
|