mirror of
https://github.com/funamitech/mastodon
synced 2024-11-24 23:26:42 +09:00
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
|