2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00
discourse/app/serializers/user_wordpress_serializer.rb

14 lines
265 B
Ruby
Raw Normal View History

class UserWordpressSerializer < BasicUserSerializer
include UrlHelper
def avatar_template
if Hash === object
absolute User.avatar_template(user[:username], user[:uploaded_avatar_id])
else
absolute object.avatar_template
end
end
end