diff --git a/plone/app/discussion/browser/comments.pt b/plone/app/discussion/browser/comments.pt index 34c82ab..4f88c6b 100644 --- a/plone/app/discussion/browser/comments.pt +++ b/plone/app/discussion/browser/comments.pt @@ -29,21 +29,22 @@ tal:define="reply reply_dict/comment; depth reply_dict/depth|python:0; creator reply/Creator; - author_home_url string:${context/portal_url}/author/${reply/author_username}; - portrait python:here.portal_membership.getPersonalPortrait(reply.author_username); + author_home_url python:view.get_commenter_home_url(username=reply.author_username); + portrait_url python:view.get_commenter_portrait(reply.author_username); anonymous_creator python:creator in ('Anonymous User', '');" tal:attributes="class python:'comment replyTreeLevel'+str(depth); style string:margin-left: ${depth}em; id string:comment-${reply/id}">