fedibird-fe/app/serializers/rest/compact_search_serializer.rb

9 lines
333 B
Ruby
Raw Normal View History

2022-08-27 10:57:05 +00:00
# frozen_string_literal: true
class REST::CompactSearchSerializer < ActiveModel::Serializer
has_many :accounts, serializer: REST::AccountSerializer
has_one :statuses, serializer: REST::CompactStatusesSerializer
has_many :hashtags, serializer: REST::TagSerializer
has_many :profiles, serializer: REST::AccountSerializer
end