mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 11:32:24 -05: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
11 lines
264 B
Ruby
11 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
|