mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-04 02:26:11 +08:00
Do not omit when use pic
This commit is contained in:
parent
d94ce39c6e
commit
79634f7f55
@ -110,7 +110,10 @@ class Post:
|
||||
msgs = []
|
||||
text = ''
|
||||
if self.text:
|
||||
text += '{}'.format(self.text if len(self.text) < 500 else self.text[:500] + '...')
|
||||
if self._use_pic():
|
||||
text += '{}'.format(self.text)
|
||||
else:
|
||||
text += '{}'.format(self.text if len(self.text) < 500 else self.text[:500] + '...')
|
||||
text += '\n来源: {}'.format(self.target_type)
|
||||
if self.target_name:
|
||||
text += ' {}'.format(self.target_name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user