Skip to content

Commit

Permalink
fix: summary switch bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zhayujie committed May 14, 2024
1 parent e381d1b commit 2c6583c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/linkai/linkai.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def on_handle_context(self, e_context: EventContext):
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, "正在为你加速生成摘要,请稍后")
Expand Down

0 comments on commit 2c6583c

Please sign in to comment.