mirror of
https://github.com/discourse/discourse.git
synced 2025-03-22 18:35:37 +08: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
|
# front page json gets away without embedding
|
||||||
class SuggestedPosterSerializer < ApplicationSerializer
|
class SuggestedPosterSerializer < ApplicationSerializer
|
||||||
attributes :extras, :description
|
attributes :extras, :description
|
||||||
has_one :user, serializer: BasicUserSerializer, embed: :objects
|
has_one :user, serializer: PosterSerializer, embed: :objects
|
||||||
end
|
end
|
||||||
|
|
||||||
attributes :archetype,
|
attributes :archetype,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user