DEV: Use PosterSerializer for SuggestedTopicSerializer posters (#25650)

The only addition is PosterSerializer is this:

discourse/app/serializers/poster_serializer.rb

Line 4 in 4a5616f

Which allows themes to check the posters' primary group!
This commit is contained in:
Mark VanLandingham 2024-02-12 14:04:02 -06:00 committed by GitHub
parent 4a5616fe86
commit d4fb6e1437
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,7 +7,7 @@ class SuggestedTopicSerializer < ListableTopicSerializer
# front page json gets away without embedding
class SuggestedPosterSerializer < ApplicationSerializer
attributes :extras, :description
has_one :user, serializer: BasicUserSerializer, embed: :objects
has_one :user, serializer: PosterSerializer, embed: :objects
end
attributes :archetype,