闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
337 B

  1. # frozen_string_literal: true
  2. class REST::EncryptedMessageSerializer < ActiveModel::Serializer
  3. attributes :id, :account_id, :device_id,
  4. :type, :body, :digest, :message_franking
  5. def id
  6. object.id.to_s
  7. end
  8. def account_id
  9. object.from_account_id.to_s
  10. end
  11. def device_id
  12. object.from_device_id
  13. end
  14. end