diff --git a/templates/comment.html b/templates/comment.html index 4e510be..49558af 100644 --- a/templates/comment.html +++ b/templates/comment.html @@ -1,10 +1,10 @@ -{%- macro author(name, ctime, mtime) -%} -{{ name }} - {{ format_since(ctime) }}{% if ctime != mtime %} (last modified {{ format_since(mtime) }}){% endif %} +{%- macro author(id, name, ctime, mtime) -%} +{{ name }} - {{ format_since(ctime) }}{% if ctime != mtime %} (last modified {{ format_since(mtime) }}){% endif %} {%- endmacro -%} {%- macro comment_author(comment, thread_id) -%}

- {{- author(comment.author, comment.create_time, comment.modify_time) -}} + {{- author(comment.author_id, comment.author, comment.create_time, comment.modify_time) }} | {# Suffixing a # prevents unnecessary reloads #} thread {%- if comment.parent_id is not none -%} @@ -21,7 +21,7 @@ {%- macro thread_author(author_id, name, ctime, mtime) -%}

- {{- author(name, ctime, mtime) -}} + {{- author(author_id, name, ctime, mtime) -}} {%- if author_id == session.get('user_id') -%} edit {%- endif -%}