Fix comment ID links on blog media page
authorAndrew Browning <ayleph@thisshitistemp.com>
Sat, 5 Mar 2016 16:58:23 +0000 (11:58 -0500)
committerAndrew Browning <ayleph@thisshitistemp.com>
Sat, 5 Mar 2016 16:58:23 +0000 (11:58 -0500)
Change the comment ID behaviour and source of
user_pages/blog_media.html to match user_pages/media.html as of #5376.

mediagoblin/templates/mediagoblin/user_pages/blog_media.html

index ec63e699b6f41a93509faff2720513cf4dfbaea0..261b21e7255c4b4703c87410321f1e01d33f0806 100644 (file)
       {% endif %}
       <ul style="list-style:none">
       {% for comment in comments %}
-        {% set comment_author = comment.get_actor %}
+        {% set comment_object = comment.comment() %}
+        {% set comment_author = comment_object.get_actor %}
         <li id="comment-{{ comment.id }}"
           {%- if pagination.active_id == comment.id %}
             class="comment_wrapper comment_active">
                             user=media.get_actor.username,
                             media=media.slug_or_id) }}#comment"
                class="comment_whenlink">
-              <span title='{{- comment.created.strftime("%I:%M%p %Y-%m-%d") -}}'>
-                {%- trans formatted_time=timesince(comment.created) -%}
+              <span title='{{- comment_object.created.strftime("%I:%M%p %Y-%m-%d") -}}'>
+                {%- trans formatted_time=timesince(comment_object.created) -%}
                   {{ formatted_time }} ago
                 {%- endtrans -%}
               </span></a>:
           </div>
           <div class="comment_content">
             {% autoescape False -%}
-              {{ comment.content_html }}
+              {{ comment_object.content_html }}
             {%- endautoescape %}
           </div>
         </li>