diff --git a/core/thirdpartyapp/farcaster.py b/core/thirdpartyapp/farcaster.py index 4023b5e..045a3f0 100644 --- a/core/thirdpartyapp/farcaster.py +++ b/core/thirdpartyapp/farcaster.py @@ -116,12 +116,12 @@ def did_recast_cast(self, cast_hash: str, addresses: list[str]) -> bool: def _get_followers_status(self, user_fid: str, follower_fids: str | list) -> bool: if isinstance(follower_fids, list): - follower_fids = ",".join(follower_fids) + follower_fids = ",".join(map(str, follower_fids)) path = self.paths.get("get_bulk_profile_by_fid") params = {"viewer_fid": user_fid, "fids": follower_fids} res = self.requests.get( path=path, params=params, session=self.session, headers=self.headers - )[0]["viewer_context"]["followed_by"] + ) return { data["fid"]: data["viewer_context"]["following"] for data in res["users"] }