fix thread detection

This commit is contained in:
Mylloon 2022-08-11 14:18:06 +02:00
parent 83956d2d47
commit 61a1d52bf8
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -103,7 +103,7 @@ class Listener(StreamingClient):
# Check if the tweet is not a retweet
if not tweet.text.startswith("RT @"):
# 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"]:
print("Thread...", end=" ")
base_tweet = self.client.get_tweet(id=tweet.conversation_id, tweet_fields="author_id", user_auth=True).data