fix stupid bug

This commit is contained in:
felinae98
2021-07-08 16:59:39 +08:00
parent 7b128c60a8
commit 12b35ec6cc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ class Post:
return 'type: {}\nfrom: {}\ntext: {}\nurl: {}\npic: {}'.format(
self.target_type,
self.target_name,
self.text,
self.text if len(self.text) < 500 else self.text[:500] + '...',
self.url,
', '.join(map(lambda x: 'b64img' if x.startswith('base64') else x, self.pics))
)