diff --git a/templates/new_post.html.j2 b/templates/new_post.html.j2 index 89dd978..051add3 100644 --- a/templates/new_post.html.j2 +++ b/templates/new_post.html.j2 @@ -72,36 +72,37 @@ {% endfor %} {% endif %} - {% if data['reply'] %} + {% if data['meb_reply_to'] %} + {% for reply in data['meb_reply_to'] %}
- Reply original page + Reply original page
- - {{ data['reply']['account']['display_name'] }} avatar image - {{ data['reply']['account']['display_name'] }} ({{ data['reply']['account']['username'] }}) + + {{ reply['account']['display_name'] }} avatar image + {{ reply['account']['display_name'] }} ({{ reply['account']['username'] }})
- {% set created_date = time.strptime(data['reply']['created_at'], '%Y-%m-%dT%H:%M:%S.%fZ') %} + {% set created_date = time.strptime(reply['created_at'], '%Y-%m-%dT%H:%M:%S.%fZ') %} {{ time.strftime('%Y-%m-%d %H:%M:%S %zUTC', created_date) }}
- {{ data['reply']['spoiler'] }} + {{ reply['spoiler'] }}
- {{ data['reply']['content'] }} + {{ reply['content'] }} - {% if data['reply']['media_attachments'] %} - {% for media in data['reply']['media_attachments'] %} + {% if reply['media_attachments'] %} + {% for media in reply['media_attachments'] %} {% if media['type'] == 'image' %} {{ media['description'] }} {% elif media['type'] == 'video' %} @@ -118,6 +119,7 @@
+ {% endfor %} {% endif %} {% if data['reblog'] %}