fix stupid bug

This commit is contained in:
felinae98 2021-07-08 16:59:39 +08:00
parent 7b128c60a8
commit 12b35ec6cc
No known key found for this signature in database
GPG Key ID: 00C8B010587FF610
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
---
home: true
heroText: Nonebot HK Reporter
tagline: 全网跑到什么地方,比其他的....bot跑得还快
tagline: 本bot励志做全世界跑得最快的记者
actionText: 快速部署
actionLink: /usage/
features:

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))
)