mirror of https://github.com/mastodon/mastodon
Add attribute for default privacy to verify credentials (#4075)
* Add attribute for default privacy to verify credentials * add raw_note * sourcepull/4131/head
parent
4122a837fa
commit
f8212da329
@ -0,0 +1,13 @@
|
||||
# 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
|
Loading…
Reference in New Issue