Files
discourse/app/serializers/post_wordpress_serializer.rb
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
319 B
Ruby
Raw Normal View History

# frozen_string_literal: true
# The most basic attributes of a topic that we need to create a link for it.
class PostWordpressSerializer < BasicPostSerializer
2014-10-23 03:02:06 +00:00
attributes :post_number
def avatar_template
if object.user
UrlHelper.absolute object.user.avatar_template
else
nil
end
end
end