UX: include posters in suggested topics

required for mobile
This commit is contained in:
Sam 2016-07-05 10:10:12 +10:00
parent 72560b5260
commit c182836709
1 changed files with 0 additions and 4 deletions

View File

@ -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