{% macro embed_csrf_token() %} {% endmacro %} {% macro embed_redirect_url() %} {% endmacro %} {% macro admin_follow_button(actor) %}
{% endmacro %} {% macro admin_like_button(ap_object_id) %} {% endmacro %} {% macro admin_bookmark_button(ap_object_id) %} {% endmacro %} {% macro admin_unbookmark_button(ap_object_id) %} {% endmacro %} {% macro admin_pin_button(ap_object_id) %} {% endmacro %} {% macro admin_unpin_button(ap_object_id) %} {% endmacro %} {% macro admin_announce_button(ap_object_id, disabled=False) %} {% endmacro %} {% macro admin_undo_button(ap_object_id, action="Undo") %} {% endmacro %} {% macro sensitive_button(permalink_id) %} {% endmacro %} {% macro show_more_button(permalink_id) %} {% 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_box_filters(route) %}Filter by {% for ap_type in ["Note", "Like", "Announce", "Follow"] %} {% if request.query_params.filter_by == ap_type %} {{ ap_type }} {% else %} {{ ap_type }} {% endif %} {% endfor %}. {% if request.query_params.filter_by %}Reset filter{% endif %}
{% endmacro %} {% macro display_actor(actor, actors_metadata) %} {% set metadata = actors_metadata.get(actor.ap_id) %} {% if is_admin and metadata %}{{ object.summary | clean_html(object) | safe }}
{% endif %} {% if object.sensitive and object.summary and not request.query_params.show_more == object.permalink_id %} {{ show_more_button(object.permalink_id) }} {% endif %} {% if not object.sensitive or (object.sensitive and object.summary and request.query_params.show_more == object.permalink_id) %}