discourse/app/serializers/web_hook_like_serializer.rb

6 lines
220 B
Ruby

# frozen_string_literal: true
class WebHookLikeSerializer < ApplicationSerializer
has_one :post, serializer: WebHookPostSerializer, embed: :objects
has_one :user, serializer: BasicUserSerializer, embed: :objects
end