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