{% macro embed_csrf_token() %} {% endmacro %} {% macro embed_redirect_url() %} {% endmacro %} {% macro admin_follow_button(actor) %}
{{ embed_csrf_token() }} {{ embed_redirect_url() }}
{% endmacro %} {% macro admin_like_button(ap_object_id) %}
{{ embed_csrf_token() }} {{ embed_redirect_url() }}
{% endmacro %} {% macro admin_announce_button(ap_object_id) %}
{{ embed_csrf_token() }} {{ embed_redirect_url() }}
{% endmacro %} {% macro admin_undo_button(ap_object_id, action="Undo") %}
{{ embed_csrf_token() }} {{ embed_redirect_url() }}
{% endmacro %} {% macro sensitive_button(permalink_id) %}
{% for k, v in request.query_params.items() %} {% endfor %}
{% endmacro %} {% macro admin_reply_button(ap_object_id) %}
{% endmacro %} {% macro admin_profile_button(ap_actor_id) %}
{% endmacro %} {% macro admin_expand_button(ap_object_id) %}
{% endmacro %} {% macro display_actor(actor, actors_metadata) %} {% set metadata = actors_metadata.get(actor.ap_id) %}
{{ actor.name or actor.preferred_username }}
{{ actor.handle }}
{% if is_admin and metadata %}
{% endif %} {% endmacro %} {% macro display_object_expanded(object) %}
{{ display_actor(object.actor, {}) }}
{{ object.content | clean_html(object) | safe }}
{{ object.ap_published_at | format_date }} {{ object.visibility.value }} {% if object.is_from_outbox %} {{ object.likes_count }} likes {% endif %} {% if object.is_from_outbox %} {{ object.announces_count }} shares {% endif %}
{% endmacro %} {% macro display_object(object) %} {% if object.ap_type in ["Note", "Article", "Video"] %} {% elif object.ap_type == "Follow" %} {% if object.is_from_inbox %}
{{ object.actor.display_name }} followed you {{ object.ap_published_at | timeago }}
{{ display_actor(object.actor, {}) }} {% endif %} {% endif %} {% endmacro %}