From 2ac51b97219c735fbc03f9b8a20fc19c4fa758d2 Mon Sep 17 00:00:00 2001 From: Pooya Fekri Date: Wed, 18 Sep 2024 13:08:53 +0330 Subject: [PATCH] Fix farcaster following constraint --- core/thirdpartyapp/farcaster.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/thirdpartyapp/farcaster.py b/core/thirdpartyapp/farcaster.py index 7e81843..b5201e7 100644 --- a/core/thirdpartyapp/farcaster.py +++ b/core/thirdpartyapp/farcaster.py @@ -134,7 +134,7 @@ def is_following(self, fid: str, address: str) -> bool: """ try: follower_fid = self._get_profile(address)["fid"] - return self._get_followers_status(follower_fid, fid) + return self._get_followers_status(follower_fid, fid)[fid] except ( RequestException, IndexError, @@ -153,7 +153,7 @@ def be_followed_by(self, fid: str, address: str): """ try: following_fid = self._get_profile(address)["fid"] - return self._get_follow_status(fid, following_fid) + return self._get_follow_status(fid, following_fid)[following_fid] except ( RequestException, IndexError,