discourse/app/serializers/post_wordpress_serializer.rb
2014-10-23 03:02:06 +00:00

16 lines
299 B
Ruby

# The most basic attributes of a topic that we need to create a link for it.
class PostWordpressSerializer < BasicPostSerializer
attributes :post_number
include UrlHelper
def avatar_template
if object.user
absolute object.user.avatar_template
else
nil
end
end
end