From bf208d04226eb5d61f1add34d007b411385cd52e Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sat, 7 Jul 2018 14:07:29 +0200 Subject: [PATCH] Fix followers --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 49076ac..e5b4938 100644 --- a/app.py +++ b/app.py @@ -1536,12 +1536,12 @@ def followers(): DB.activities, q=q, cursor=request.args.get("cursor"), - map_func=lambda doc: doc["activity"]["object"], + map_func=lambda doc: doc["activity"]["actor"], ) ) followers, older_than, newer_than = paginated_query(DB.activities, q) - followers = [ACTOR_SERVICE.get(doc["activity"]["object"]) for doc in followers] + followers = [ACTOR_SERVICE.get(doc["activity"]["actor"]) for doc in followers] return render_template( "followers.html", followers_data=followers,