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.
glitchier-soc/app/serializers/rest/status_edit_serializer.rb

15 lines
362 B

# 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