mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 18:43:38 +08:00
189cb3ff12
- new hidden site setting 'migrate_to_new_scheme' (defaults to false) - new rake tasks to toggle migration to new scheme - FIX: migrate_to_new_scheme also works with CDN - PERF: improve perf of the DbHelper.remap method - REFACTOR: UrlHelper is now a class
12 lines
264 B
Ruby
12 lines
264 B
Ruby
class UserWordpressSerializer < BasicUserSerializer
|
|
|
|
def avatar_template
|
|
if Hash === object
|
|
UrlHelper.absolute User.avatar_template(user[:username], user[:uploaded_avatar_id])
|
|
else
|
|
UrlHelper.absolute object.avatar_template
|
|
end
|
|
end
|
|
|
|
end
|