mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
fd3a45e348
* Add edit history to web UI * Change history reducer to store items per status * Fix missing loading prop
15 lines
362 B
Ruby
15 lines
362 B
Ruby
# frozen_string_literal: true
|
|
|
|
class REST::StatusEditSerializer < ActiveModel::Serializer
|
|
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
|
|
end
|