2022-01-19 22:37:27 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class REST::StatusEditSerializer < ActiveModel::Serializer
|
2022-02-09 01:17:07 +01:00
|
|
|
has_one :account, serializer: REST::AccountSerializer
|
|
|
|
|
|
|
|
attributes :content, :spoiler_text,
|
|
|
|
:media_attachments_changed, :created_at
|
|
|
|
|
|
|
|
has_many :emojis, serializer: REST::CustomEmojiSerializer
|
|
|
|
|
|
|
|
def content
|
|
|
|
Formatter.instance.format(object)
|
|
|
|
end
|
2022-01-19 22:37:27 +01:00
|
|
|
end
|