glitchier-soc/app/serializers/rest/status_edit_serializer.rb
Eugen Rochko 948da1a958 Add edit history to web UI (#17390)
* Add edit history to web UI

* Change history reducer to store items per status

* Fix missing loading prop
2022-02-09 01:17:07 +01:00

14 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