diff options
author | Andrew Browning <ayleph@thisshitistemp.com> | 2016-03-05 11:58:23 -0500 |
---|---|---|
committer | Andrew Browning <ayleph@thisshitistemp.com> | 2016-03-05 11:58:23 -0500 |
commit | 512ed083b7343103737664c49af40118c9e60eb2 (patch) | |
tree | 946e5b765f19eca85afcff1308d086b05a95dc21 | |
parent | b1d4973ca4f2d14ea2b17cec269ebd056da2da71 (diff) | |
download | mediagoblin-512ed083b7343103737664c49af40118c9e60eb2.tar.lz mediagoblin-512ed083b7343103737664c49af40118c9e60eb2.tar.xz mediagoblin-512ed083b7343103737664c49af40118c9e60eb2.zip |
Fix comment ID links on blog media page
Change the comment ID behaviour and source of
user_pages/blog_media.html to match user_pages/media.html as of #5376.
-rw-r--r-- | mediagoblin/templates/mediagoblin/user_pages/blog_media.html | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mediagoblin/templates/mediagoblin/user_pages/blog_media.html b/mediagoblin/templates/mediagoblin/user_pages/blog_media.html index ec63e699..261b21e7 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/blog_media.html +++ b/mediagoblin/templates/mediagoblin/user_pages/blog_media.html @@ -107,7 +107,8 @@ {% 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"> @@ -127,15 +128,15 @@ 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> |