logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

credential_account_serializer.rb (296B)


  1. # frozen_string_literal: true
  2. class REST::CredentialAccountSerializer < REST::AccountSerializer
  3. attributes :source
  4. def source
  5. user = object.user
  6. {
  7. privacy: user.setting_default_privacy,
  8. sensitive: user.setting_default_sensitive,
  9. note: object.note,
  10. }
  11. end
  12. end