Skip to content

Commit

Permalink
Fix farcaster following
Browse files Browse the repository at this point in the history
  • Loading branch information
PooyaFekri committed Aug 12, 2024
1 parent b912712 commit 6a0380f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/thirdpartyapp/farcaster.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
Expand Down

0 comments on commit 6a0380f

Please sign in to comment.