From b15523b52cf751d70eb21e379196ac868117be54 Mon Sep 17 00:00:00 2001 From: felinae98 <731499577@qq.com> Date: Fri, 19 Feb 2021 00:46:23 +0800 Subject: [PATCH] update post --- src/plugins/hk_reporter/post.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/hk_reporter/post.py b/src/plugins/hk_reporter/post.py index 8ce58b3..b04c21c 100644 --- a/src/plugins/hk_reporter/post.py +++ b/src/plugins/hk_reporter/post.py @@ -8,7 +8,7 @@ class Post: target_type: str text: str - url: str + url: Optional[str] target_name: Optional[str] = None compress: bool = False override_use_pic: Optional[bool] = None @@ -26,14 +26,14 @@ class Post: if self.target_name: text += ' {}'.format(self.target_name) if self.text: - text += '\n{}'.format(self.text) + text += ' \n{}'.format(self.text) if self._use_pic(): msgs.append(await parse_text(text)) if not self.target_type == 'rss' and self.url: msgs.append(self.url) else: if self.url: - text += '详情: {}'.format(self.url) + text += ' \n详情: {}'.format(self.url) msgs.append(text) for pic in self.pics: msgs.append("[CQ:image,file={url}]".format(url=pic))