We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e4faf8 commit 3ebe12fCopy full SHA for 3ebe12f
src/util/parse_tweet.py
@@ -69,6 +69,8 @@ def parse_tweet(tweet: dict, update_tweet_id: bool = False):
69
is_long_tweet = False
70
71
## TODO: split the below logic up into functions
72
+ print(tweet)
73
+ print()
74
75
# To be able to get the tweet and the reply
76
if "items" in tweet.keys():
@@ -210,8 +212,8 @@ def parse_tweet(tweet: dict, update_tweet_id: bool = False):
210
212
211
213
if retweeted_status_result and replied_tweet:
214
e_title = f"{util.vars.custom_emojis['retweet']} {user_name} retweeted {r_user_name}"
- # Remove the "RT @username: " from the text
- text = re.sub(r"^RT @\w+: ", "", text)
215
+ # Use the full retweeted text (otherwise the tweet text is cut off)
216
+ text = r_text
217
218
media += r_media
219
media_types += r_media_types
0 commit comments