mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
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:
parent
4a5616fe86
commit
d4fb6e1437
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user