mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 21:24:28 +00:00
36 lines
1.2 KiB
HTML
36 lines
1.2 KiB
HTML
{%- import "utils.html" as utils with context -%}
|
|
{% extends "layout.html" %}
|
|
|
|
{% block head %}
|
|
<title>{{ local_actor.display_name }} - Lookup</title>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="box">
|
|
<p>Interact with an ActivityPub object via its URL or look for a user using <i>@user@domain.tld</i></p>
|
|
|
|
<form class="form" action="{{ url_for("get_lookup") }}" method="GET">
|
|
<input type="text" name="query" value="{{ query if query else "" }}" autofocus>
|
|
<input type="submit" value="Lookup">
|
|
</form>
|
|
</div>
|
|
|
|
{% if error %}
|
|
<div class="box error-box">
|
|
{% if error.value == "NOT_FOUND" %}
|
|
<p>The remote object was deleted.</p>
|
|
{% elif error.value == "TIMEOUT" %}
|
|
<p>Lookup timed out, please try refreshing the page.</p>
|
|
{% else %}
|
|
<p>Unexpected error, please check the logs and report an issue if needed.</p>
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if ap_object and ap_object.ap_type in actor_types %}
|
|
{{ utils.display_actor(ap_object, actors_metadata) }}
|
|
{% elif ap_object %}
|
|
{{ utils.display_object(ap_object, actors_metadata=actors_metadata) }}
|
|
{% endif %}
|
|
{% endblock %}
|