minor adjustments

This commit is contained in:
Charlotte 🦝 Delenk 2022-11-04 11:30:09 +01:00
parent b988c1bb52
commit ac9d7f200a
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -980,7 +980,7 @@ index 08aa61d..02cee13 100644
else: else:
logger.info('Truncating toot') logger.info('Truncating toot')
diff --git a/moa/tweet.py b/moa/tweet.py diff --git a/moa/tweet.py b/moa/tweet.py
index b156967..95d4a96 100644 index b156967..0578338 100644
--- a/moa/tweet.py --- a/moa/tweet.py
+++ b/moa/tweet.py +++ b/moa/tweet.py
@@ -20,6 +20,7 @@ HANDLE_SUFFIX = '' @@ -20,6 +20,7 @@ HANDLE_SUFFIX = ''
@ -1083,7 +1083,7 @@ index b156967..95d4a96 100644
content = re.sub(url.url, url.expanded_url, content) content = re.sub(url.url, url.expanded_url, content)
if self.is_retweet: if self.is_retweet:
+ self.media = [] + self.__fetched_attachments = []
+ self.__content = f"RT @{self.data.retweeted_status.user.screen_name}{HANDLE_SUFFIX}\n{self.url}" + self.__content = f"RT @{self.data.retweeted_status.user.screen_name}{HANDLE_SUFFIX}\n{self.url}"
+ return self.__content + return self.__content
if len(content) > 0: if len(content) > 0: