{% import "macros.jinja" as macros %} {% if current_depth is not defined %} {% set current_depth = 1 %} {% endif %} {% if depth_limit is not defined %} {% set depth_limit = 10 %} {% endif %} {% if is_in_quote %} {% set show_replies_from = False %} {% set show_replies = False %} {% endif %} {% if show_replies_from == 'following' %} {% set show_replies = show_replies_from and molt.get_reply_from_following(current_user) and current_depth <= depth_limit %} {% elif show_replies_from %} {% set show_replies = show_replies_from and molt.get_reply_from(show_replies_from) and current_depth <= depth_limit %} {% endif %} {% if show_replies %} {% set hide_border = true %} {% set is_parent = true %} {% endif %} {% set is_remolt = molt.is_remolt %} {% if is_remolt %} {% set remolt_shell = molt %} {% set molt = molt.original_molt %} {% endif %} {% set is_quote = molt.is_quote %} {# MOLT AUTHOR OPTIMIZATION #} {% if not author or author.id != molt.author_id %} {% set author = molt.get_author() %} {% endif %} {% set is_deleted = molt.deleted %} {% set is_unavailable = author.banned or author.deleted or molt.original_molt.deleted %} {% if always_show %} {% set is_deleted = false %} {% set is_unavailable = false %} {% 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 molt.is_reply and recurse_parents %}