mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 13:14:28 +00:00
Fix unfollow in the admin
This commit is contained in:
parent
ffc2700c4f
commit
d5ee0e3fa5
2 changed files with 3 additions and 3 deletions
2
app.py
2
app.py
|
@ -1785,7 +1785,7 @@ def following():
|
|||
abort(404)
|
||||
|
||||
following, older_than, newer_than = paginated_query(DB.activities, q)
|
||||
following = [doc["meta"]["object"] for doc in following]
|
||||
following = [(doc["remote_id"], doc["meta"]["object"]) for doc in following]
|
||||
return render_template(
|
||||
"following.html",
|
||||
following_data=following,
|
||||
|
|
|
@ -8,12 +8,12 @@
|
|||
{% include "header.html" %}
|
||||
|
||||
<div id="following">
|
||||
{% for follow in following_data %}
|
||||
{% for (follow_id, follow) in following_data %}
|
||||
{% if session.logged_in %}
|
||||
<div style="margin-left:90px;padding-bottom:5px;margin-bottom:15px;">
|
||||
<form action="/api/undo" class="action-form" method="POST">
|
||||
<input type="hidden" name="redirect" value="{{ request.path }}"/>
|
||||
<input type="hidden" name="id" value="{{ follow.id }}"/>
|
||||
<input type="hidden" name="id" value="{{ follow_id }}"/>
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
|
||||
<button type="submit" class="bar-item">unfollow</button>
|
||||
</form>
|
||||
|
|
Loading…
Reference in a new issue