From cfe9ac10052ba694a6be82e2f22e760b637260e5 Mon Sep 17 00:00:00 2001 From: Untone Date: Sun, 5 May 2024 19:49:07 +0300 Subject: [PATCH] follow-fi --- resolvers/follower.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resolvers/follower.py b/resolvers/follower.py index 8c20621d..5ab7abfa 100644 --- a/resolvers/follower.py +++ b/resolvers/follower.py @@ -64,7 +64,7 @@ async def follow(_, info, what, slug): if isinstance(author_dict, dict): author_id = author_dict.get("id") if author_id: - follows_ids = [a.id for a in follows] + follows_ids = [a.get('id') for a in follows] if author_id not in follows_ids: await cache_author(follower_dict) await notify_follower(follower_dict, author_id, "follow")