discourse/app/serializers/post_wordpress_serializer.rb

15 lines
273 B
Ruby
Raw Normal View History

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