mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 13:41:31 +08:00
UX: include posters in suggested topics
required for mobile
This commit is contained in:
parent
72560b5260
commit
c182836709
|
@ -10,10 +10,6 @@ class SuggestedTopicSerializer < ListableTopicSerializer
|
|||
attributes :archetype, :like_count, :views, :category_id
|
||||
has_many :posters, serializer: SuggestedPosterSerializer, embed: :objects
|
||||
|
||||
def include_posters?
|
||||
object.private_message?
|
||||
end
|
||||
|
||||
def posters
|
||||
object.posters || []
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user