mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 04:13:22 +08:00
16 lines
299 B
Ruby
16 lines
299 B
Ruby
# The most basic attributes of a topic that we need to create a link for it.
|
|
class PostWordpressSerializer < BasicPostSerializer
|
|
attributes :post_number
|
|
|
|
include UrlHelper
|
|
|
|
def avatar_template
|
|
if object.user
|
|
absolute object.user.avatar_template
|
|
else
|
|
nil
|
|
end
|
|
end
|
|
|
|
end
|