This commit is contained in:
felinae98 2021-07-06 20:08:51 +08:00
parent 10a2fbfa27
commit eb2f325223
No known key found for this signature in database
GPG Key ID: 00C8B010587FF610

View File

@ -98,7 +98,7 @@ class Post:
async def generate_messages(self):
await self._pic_merge()
msgs = []
text = '来源: {}'.format(self.target_type)
text = ''
if self.target_name:
text += ' {}'.format(self.target_name)
if self.text:
@ -111,6 +111,7 @@ class Post:
if self.url:
text += ' \n详情: {}'.format(self.url)
msgs.append(text)
text += '来源: {}'.format(self.target_type)
for pic in self.pics:
msgs.append("[CQ:image,file={url}]".format(url=pic))
if self.compress: