From 5bb773c5e222dab0f7550967f86c1465f99ff84e Mon Sep 17 00:00:00 2001 From: Harmon Date: Sat, 1 May 2021 11:16:29 -0500 Subject: [PATCH] Fix reference to pinned_tweet_id in User --- tweepy/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweepy/user.py b/tweepy/user.py index 93dd429..2a6afd2 100644 --- a/tweepy/user.py +++ b/tweepy/user.py @@ -33,7 +33,7 @@ class User(HashableID, DataMapping): self.pinned_tweet_id = data.get("pinned_tweet_id") if self.pinned_tweet_id is not None: - self.pinned_tweet_id = int(pinned_tweet_id) + self.pinned_tweet_id = int(self.pinned_tweet_id) self.profile_image_url = data.get("profile_image_url") self.protected = data.get("protected") -- 2.25.1