mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 20:24:05 -06:00
14 lines
265 B
Ruby
14 lines
265 B
Ruby
|
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
|