discourse/app/serializers/topic_post_count_serializer.rb
Sam 5adc486cef BUGFIX: missing avatars in topic map
Cleanup uneeded column
2014-05-29 14:59:14 +10:00

22 lines
287 B
Ruby

class TopicPostCountSerializer < BasicUserSerializer
attributes :post_count
def id
object[:user].id
end
def username
object[:user].username
end
def post_count
object[:post_count]
end
def uploaded_avatar_id
object[:user].uploaded_avatar_id
end
end