Issue #362 - Simple comments - Changes based on feedback recieved from #mediagoblin
[mediagoblin.git] / mediagoblin / templates / mediagoblin / user_pages / media.html
index cd0bb76477e79b483bded046bdce16d3f8dfb948..4ed1bd02fde17f23bbc904de62c341d96d52749f 100644 (file)
     {% if comments %}
       <h3>Comments</h3>
       {% for comment in comments %}
+      {% set comment_author = comment.author() %}
         <div class="comment_wrapper" id="comment-{{ comment['_id'] }}">
          <div class="comment_author">By: 
            <a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
-                                        user = comment['author']['username']) }}">
-             {{ comment['author']['username'] }}
+                                        user = comment_author['username']) }}">
+             {{ comment_author['username'] }}
            </a>
          </div>
          <div class="comment_datetime">