mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 06:31:45 +08:00

User flair was given by user's primary group. This PR separates the two, adds a new field to the user model for flair group ID and users can select their flair from user preferences now.
10 lines
287 B
Ruby
10 lines
287 B
Ruby
# frozen_string_literal: true
|
|
|
|
class TopicPosterSerializer < ApplicationSerializer
|
|
attributes :extras, :description
|
|
|
|
has_one :user, serializer: PosterSerializer
|
|
has_one :primary_group, serializer: PrimaryGroupSerializer
|
|
has_one :flair_group, serializer: FlairGroupSerializer
|
|
end
|