mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -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
13 lines
288 B
Ruby
13 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
|