Add attribute for default privacy to verify credentials (#4075)
* Add attribute for default privacy to verify credentials * add raw_note * sourceth-downstream
parent
f19f18f47e
commit
2ffd2303ee
@ -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