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