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.
This commit is contained in:
parent
b1d4973ca4
commit
512ed083b7
@ -107,7 +107,8 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
<ul style="list-style:none">
|
<ul style="list-style:none">
|
||||||
{% for comment in comments %}
|
{% 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 }}"
|
<li id="comment-{{ comment.id }}"
|
||||||
{%- if pagination.active_id == comment.id %}
|
{%- if pagination.active_id == comment.id %}
|
||||||
class="comment_wrapper comment_active">
|
class="comment_wrapper comment_active">
|
||||||
@ -127,15 +128,15 @@
|
|||||||
user=media.get_actor.username,
|
user=media.get_actor.username,
|
||||||
media=media.slug_or_id) }}#comment"
|
media=media.slug_or_id) }}#comment"
|
||||||
class="comment_whenlink">
|
class="comment_whenlink">
|
||||||
<span title='{{- comment.created.strftime("%I:%M%p %Y-%m-%d") -}}'>
|
<span title='{{- comment_object.created.strftime("%I:%M%p %Y-%m-%d") -}}'>
|
||||||
{%- trans formatted_time=timesince(comment.created) -%}
|
{%- trans formatted_time=timesince(comment_object.created) -%}
|
||||||
{{ formatted_time }} ago
|
{{ formatted_time }} ago
|
||||||
{%- endtrans -%}
|
{%- endtrans -%}
|
||||||
</span></a>:
|
</span></a>:
|
||||||
</div>
|
</div>
|
||||||
<div class="comment_content">
|
<div class="comment_content">
|
||||||
{% autoescape False -%}
|
{% autoescape False -%}
|
||||||
{{ comment.content_html }}
|
{{ comment_object.content_html }}
|
||||||
{%- endautoescape %}
|
{%- endautoescape %}
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user