mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-27 13:51:36 +01:00
f669b8bcce
And add `created_at` to encrypted message serializer
19 lines
363 B
Ruby
19 lines
363 B
Ruby
# frozen_string_literal: true
|
|
|
|
class REST::EncryptedMessageSerializer < ActiveModel::Serializer
|
|
attributes :id, :account_id, :device_id,
|
|
:type, :body, :digest, :message_franking,
|
|
:created_at
|
|
|
|
def id
|
|
object.id.to_s
|
|
end
|
|
|
|
def account_id
|
|
object.from_account_id.to_s
|
|
end
|
|
|
|
def device_id
|
|
object.from_device_id
|
|
end
|
|
end
|