Browse Source
* Add attribute for default privacy to verify credentials * add raw_note * sourcepull/5/head
2 changed files with 15 additions and 2 deletions
@ -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