mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 08:38:42 +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
14 lines
288 B
Ruby
14 lines
288 B
Ruby
# The most basic attributes of a topic that we need to create a link for it.
|
|
class PostWordpressSerializer < BasicPostSerializer
|
|
attributes :post_number
|
|
|
|
def avatar_template
|
|
if object.user
|
|
UrlHelper.absolute object.user.avatar_template
|
|
else
|
|
nil
|
|
end
|
|
end
|
|
|
|
end
|