{% import "macros.jinja" as macros %} {# MOLT AUTHOR OPTIMIZATION #} {% set author = molt.get_author() %} {% set is_quote = molt.is_quote %} {% set is_remolt = molt.is_remolt %} {% if is_remolt %} {% set remolt_shell = molt %} {% set molt = molt.original_molt %} {% endif %} {# ORIGINAL MOLT AUTHOR OPTIMIZATION #} {% if is_quote or molt.is_reply %} {% set original_author = molt.original_molt.get_author(('id', 'username', 'display_name')) %} {% endif %}
{% if is_remolt %} {{remolt_shell.author.display_name}} Remolted {% endif %} {% if molt.is_reply and not thread %} replying to {{"your" if original_author.id == current_user.id else original_author.display_name + "'s"}} molt {% endif %}
{{author.display_name}} {% if author.verified %} {{macros.verified(17)}} {% endif %}
@{{author.username}}
{% if molt.content %}

{{molt.rich_content(full_size_media=True)|safe}}

{% endif %} {% if molt.image %}
{{molt.image | alt_text}} {% if molt.nsfw %} NSFW {% endif %}
{% endif %}
{% if is_quote and not is_in_quote %}
{% with molt = molt.original_molt, hide_border = True, hide_buttons = True, is_in_quote=True %} {% include 'molt.html' %} {% endwith %}
{% endif %}
{{localize(molt.timestamp).strftime("%#I:%M %p · %b %e, %Y") if IS_WINDOWS else localize(molt.timestamp).strftime("%-I:%M %p · %b %e, %Y")}} {% if molt.source %} · {{molt.source}} {% endif %} {% if molt.edited %} — This molt has been edited {% endif %} {% if molt.is_thread %} {% include 'thread-badge.html' %} {% endif %} {% if molt.nsfw %} {% include 'nsfw-badge.html' %} {% endif %}
{% if molt.remolt_count or molt.like_count %} {% endif %} {% if current_user %}
{% if author.id == current_user.id and molt.editable %}
{% endif %}
{% endif %}