Add attribute for default privacy to verify credentials (#4075)
* Add attribute for default privacy to verify credentials * add raw_note * sourcemaster
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