feat: default close image summary

This commit is contained in:
zhayujie
2023-11-27 14:07:14 +08:00
parent 4e675b84fb
commit a12507abbd
3 changed files with 3 additions and 5 deletions

View File

@@ -192,9 +192,7 @@ class LinkAI(Plugin):
return False
if context.kwargs.get("isgroup") and not self.sum_config.get("group_enabled"):
return False
support_type = self.sum_config.get("type")
if not support_type:
return True
support_type = self.sum_config.get("type") or ["FILE", "SHARING"]
if context.type.name not in support_type:
return False
return True