From 61a1d52bf8501416001fabeddd5624a12db5e60b Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 11 Aug 2022 14:18:06 +0200 Subject: [PATCH] fix thread detection --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 69ef4ea..a0cdd1d 100644 --- a/main.py +++ b/main.py @@ -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