2022-06-25 06:23:28 +00:00
|
|
|
{%- import "utils.html" as utils with context -%}
|
|
|
|
{% extends "layout.html" %}
|
2022-08-02 18:40:43 +00:00
|
|
|
|
|
|
|
{% block head %}
|
|
|
|
<title>{{ local_actor.display_name }} - Inbox</title>
|
|
|
|
{% endblock %}
|
|
|
|
|
2022-06-25 06:23:28 +00:00
|
|
|
{% block content %}
|
|
|
|
|
2022-07-07 18:37:16 +00:00
|
|
|
{% if show_filters %}
|
2022-06-28 18:10:25 +00:00
|
|
|
{{ utils.display_box_filters("admin_inbox") }}
|
2022-07-07 18:37:16 +00:00
|
|
|
{% endif %}
|
2022-06-28 18:10:25 +00:00
|
|
|
|
2022-07-14 18:05:36 +00:00
|
|
|
{% if not inbox %}
|
|
|
|
<div class="box">
|
|
|
|
<p>Nothing to see yet, <a href="{{ url_for("get_lookup") }}">start following people in the lookup section</a>.</p>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2022-07-03 20:01:47 +00:00
|
|
|
|
2022-06-25 06:23:28 +00:00
|
|
|
{% for inbox_object in inbox %}
|
|
|
|
{% if inbox_object.ap_type == "Announce" %}
|
2022-08-26 05:57:10 +00:00
|
|
|
{{ utils.actor_action(inbox_object, "shared", with_icon=True) }}
|
2022-06-25 06:23:28 +00:00
|
|
|
{{ utils.display_object(inbox_object.relates_to_anybox_object) }}
|
2022-07-23 17:02:06 +00:00
|
|
|
{% elif inbox_object.ap_type in ["Article", "Note", "Video", "Page", "Question"] %}
|
2022-06-25 06:23:28 +00:00
|
|
|
{{ utils.display_object(inbox_object) }}
|
2022-06-25 08:20:07 +00:00
|
|
|
{% elif inbox_object.ap_type == "Follow" %}
|
2022-07-27 16:56:14 +00:00
|
|
|
{{ utils.actor_action(inbox_object, "followed you") }}
|
2022-06-28 19:10:22 +00:00
|
|
|
{{ utils.display_actor(inbox_object.actor, actors_metadata) }}
|
2022-07-03 20:01:47 +00:00
|
|
|
{% elif inbox_object.ap_type == "Like" %}
|
2022-07-27 16:56:14 +00:00
|
|
|
{{ utils.actor_action(inbox_object, "liked one of your post") }}
|
2022-07-03 20:01:47 +00:00
|
|
|
{{ utils.display_object(inbox_object.relates_to_anybox_object) }}
|
2022-06-25 06:23:28 +00:00
|
|
|
{% else %}
|
2022-06-30 07:25:13 +00:00
|
|
|
<p>
|
2022-06-25 06:23:28 +00:00
|
|
|
Implement {{ inbox_object.ap_type }}
|
2022-06-30 07:25:13 +00:00
|
|
|
{{ inbox_object.ap_object }}
|
|
|
|
</p>
|
2022-06-25 06:23:28 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
|
2022-06-28 18:10:25 +00:00
|
|
|
{% if next_cursor %}
|
2022-07-09 07:33:34 +00:00
|
|
|
<div class="box">
|
|
|
|
<p><a href="{{ request.url._path }}?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 18:10:25 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2022-06-25 06:23:28 +00:00
|
|
|
{% endblock %}
|