Do not omit when use pic

This commit is contained in:
felinae98 2021-10-28 15:26:48 +08:00
parent d94ce39c6e
commit 79634f7f55
No known key found for this signature in database
GPG Key ID: 00C8B010587FF610

View File

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