From 2c6583cc9c88f6d07815e2a933de6b29df6f1e8c Mon Sep 17 00:00:00 2001 From: zhayujie Date: Tue, 14 May 2024 17:26:10 +0800 Subject: [PATCH] fix: summary switch bug --- plugins/linkai/linkai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/linkai/linkai.py b/plugins/linkai/linkai.py index 2411fb7..67efdee 100644 --- a/plugins/linkai/linkai.py +++ b/plugins/linkai/linkai.py @@ -69,7 +69,7 @@ class LinkAI(Plugin): return if (context.type == ContextType.SHARING and self._is_summary_open(context)) or \ - (context.type == ContextType.TEXT and LinkSummary().check_url(context.content)): + (context.type == ContextType.TEXT and self._is_summary_open(context) and LinkSummary().check_url(context.content)): if not LinkSummary().check_url(context.content): return _send_info(e_context, "正在为你加速生成摘要,请稍后")