Fix reference to pinned_tweet_id in User
authorHarmon <Harmon758@gmail.com>
Sat, 1 May 2021 16:16:29 +0000 (11:16 -0500)
committerHarmon <Harmon758@gmail.com>
Sat, 1 May 2021 16:16:29 +0000 (11:16 -0500)
tweepy/user.py

index 93dd4298cea2400c12235f425bf604cf84108510..2a6afd2e8b689787371a9422204ae8aabe0fea47 100644 (file)
@@ -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")