From 79634f7f55d88b7e1ee170d30bc2974cc2878cfa Mon Sep 17 00:00:00 2001 From: felinae98 <731499577@qq.com> Date: Thu, 28 Oct 2021 15:26:48 +0800 Subject: [PATCH] Do not omit when use pic --- src/plugins/nonebot_hk_reporter/post.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/nonebot_hk_reporter/post.py b/src/plugins/nonebot_hk_reporter/post.py index 862c086..7f28b0d 100644 --- a/src/plugins/nonebot_hk_reporter/post.py +++ b/src/plugins/nonebot_hk_reporter/post.py @@ -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)