2022-06-25 01:23:28 -05:00
|
|
|
{%- import "utils.html" as utils with context -%}
|
|
|
|
{% extends "layout.html" %}
|
2022-08-02 13:40:43 -05:00
|
|
|
|
|
|
|
{% block head %}
|
|
|
|
<title>{{ local_actor.display_name }} - Outbox</title>
|
|
|
|
{% endblock %}
|
|
|
|
|
2022-06-25 01:23:28 -05:00
|
|
|
{% block content %}
|
|
|
|
|
2022-06-28 13:10:25 -05:00
|
|
|
{{ utils.display_box_filters("admin_outbox") }}
|
2022-06-26 11:07:55 -05:00
|
|
|
|
2022-06-25 01:23:28 -05:00
|
|
|
{% for outbox_object in outbox %}
|
|
|
|
|
|
|
|
{% if outbox_object.ap_type == "Announce" %}
|
2022-06-26 11:07:55 -05:00
|
|
|
<div class="actor-action">You shared</div>
|
|
|
|
{{ utils.display_object(outbox_object.relates_to_anybox_object) }}
|
|
|
|
{% elif outbox_object.ap_type == "Like" %}
|
|
|
|
<div class="actor-action">You liked</div>
|
2022-06-25 01:23:28 -05:00
|
|
|
{{ utils.display_object(outbox_object.relates_to_anybox_object) }}
|
2022-06-26 11:07:55 -05:00
|
|
|
{% elif outbox_object.ap_type == "Follow" %}
|
|
|
|
<div class="actor-action">You followed</div>
|
|
|
|
{{ utils.display_actor(outbox_object.relates_to_actor, actors_metadata) }}
|
2022-07-24 03:50:58 -05:00
|
|
|
{% elif outbox_object.ap_type in ["Article", "Note", "Video", "Question"] %}
|
2022-06-25 01:23:28 -05:00
|
|
|
{{ utils.display_object(outbox_object) }}
|
2022-06-26 11:07:55 -05:00
|
|
|
{% else %}
|
|
|
|
Implement {{ outbox_object.ap_type }}
|
|
|
|
{% endif %}
|
2022-06-25 01:23:28 -05:00
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
|
2022-06-28 13:10:25 -05:00
|
|
|
{% if next_cursor %}
|
2022-07-09 02:33:34 -05:00
|
|
|
<div class="box">
|
|
|
|
<p><a href="{{ url_for("admin_outbox") }}?cursor={{ next_cursor }}{% if request.query_params.filter_by %}&filter_by={{ request.query_params.filter_by }}{% endif %}">See more</a></p>
|
|
|
|
</div>
|
2022-06-28 13:10:25 -05:00
|
|
|
{% endif %}
|
|
|
|
|
2022-06-25 01:23:28 -05:00
|
|
|
{% endblock %}
|