{% macro render_username(user, add_domain=True) -%} {% if user.deleted -%} [deleted] {% else -%} {{ user.display_name() }}{% if not user.is_local() %}@{{ user.ap_domain }}{% endif %} {% if user.bot -%} {% endif -%} {% endif -%} {% endmacro -%} {% macro render_communityname(community, add_domain=True) -%} {{ community.title }}{% if not community.is_local() %}@{{ community.ap_domain }}{% endif %} {% endmacro -%}