Fix #5432 - Comment report link doens't work
authorAndrew Browning <ayleph@thisshitistemp.com>
Wed, 2 Mar 2016 17:43:53 +0000 (12:43 -0500)
committerAndrew Browning <ayleph@thisshitistemp.com>
Wed, 2 Mar 2016 17:45:07 +0000 (12:45 -0500)
This builds on work done for #5376 and associates the correct comment
ID with comment report links.

mediagoblin/templates/mediagoblin/user_pages/media.html

index 48a91ab77f771d04abc56729042a638ad31cf318..ed3d18429be5732849f528450d60b7842f9c73b3 100644 (file)
                 <a href="{{ request.urlgen('mediagoblin.user_pages.media_home.report_comment',
                             user=media.get_actor.username,
                              media=media.slug_or_id,
-                             comment=comment_object.id) }}">
+                             comment=comment.id) }}">
                     {% trans %}Report{% endtrans %}</a>
             {% endif %}
           </div>