From d5ee0e3fa5657f49cf3c3340bfabbd1c85ed3f49 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Thu, 26 Jul 2018 22:44:31 +0200 Subject: [PATCH] Fix unfollow in the admin --- app.py | 2 +- templates/following.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index e39223f..9885a52 100644 --- a/app.py +++ b/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, diff --git a/templates/following.html b/templates/following.html index 0acf561..e5874a8 100644 --- a/templates/following.html +++ b/templates/following.html @@ -8,12 +8,12 @@ {% include "header.html" %}
- {% for follow in following_data %} + {% for (follow_id, follow) in following_data %} {% if session.logged_in %}
- +