fix thread detection
This commit is contained in:
parent
83956d2d47
commit
61a1d52bf8
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -103,7 +103,7 @@ class Listener(StreamingClient):
|
||||||
# Check if the tweet is not a retweet
|
# Check if the tweet is not a retweet
|
||||||
if not tweet.text.startswith("RT @"):
|
if not tweet.text.startswith("RT @"):
|
||||||
# Cancel if author of the first tweet in the conversation is in private
|
# Cancel if author of the first tweet in the conversation is in private
|
||||||
if tweet.conversation_id:
|
if tweet.conversation_id and tweet.id != tweet.conversation_id:
|
||||||
if keys["VERBOSE"]:
|
if keys["VERBOSE"]:
|
||||||
print("Thread...", end=" ")
|
print("Thread...", end=" ")
|
||||||
base_tweet = self.client.get_tweet(id=tweet.conversation_id, tweet_fields="author_id", user_auth=True).data
|
base_tweet = self.client.get_tweet(id=tweet.conversation_id, tweet_fields="author_id", user_auth=True).data
|
||||||
|
|
Reference in a new issue