Fix lookup page

This commit is contained in:
Thomas Sileo 2019-10-27 15:06:12 +01:00
parent 96086a44a4
commit 42e66b2189

View file

@ -18,6 +18,7 @@
{% if data | has_actor_type %}
<div style="margin-left:95px;padding-bottom:5px;margin-bottom:15px;display:inline-block;">
{% if following %}
<a class="bar-item" href="/admin/profile?actor_id={{data.id}}">profile</a>
<form action="/api/undo" class="action-form" method="post">
<input type="hidden" name="redirect" value="{{ request.path }}?url={{request.args.get('url')}}"/>
<input type="hidden" name="id" value="{{ following.remote_id }}"/>
@ -31,7 +32,6 @@
<button type="submit" class="bar-item" onclick="return confirm('Confirm the block action?');">block</button>
</form>
{% else %}
<a class="bar-item" href="/admin/profile?actor_id={{data.id}}">profile</a>
<form action="/api/follow" class="action-form" method="POST">
<input type="hidden" name="redirect" value="{{ request.path }}"/>
<input type="hidden" name="actor" value="{{ data.id }}"/>