mirror of
https://github.com/mastodon/mastodon
synced 2024-12-23 02:58:16 +09: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
|