mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-06 10:30:31 +08:00
8 lines
340 B
Ruby
8 lines
340 B
Ruby
# 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
|