mirror of
https://github.com/discourse/discourse.git
synced 2026-08-14 13:58:53 +08:00
8 lines
340 B
Ruby
Vendored
8 lines
340 B
Ruby
Vendored
# frozen_string_literal: true
|
|
class UserReactionSerializer < ApplicationSerializer
|
|
attributes :id, :user_id, :post_id, :created_at
|
|
|
|
has_one :user, serializer: GroupPostUserSerializer, embed: :object
|
|
has_one :post, serializer: GroupPostSerializer, embed: :object
|
|
has_one :reaction, serializer: ReactionSerializer, embed: :object
|
|
end
|