Work on fixing bugs and reformat

This commit is contained in:
2026-02-16 16:01:17 +00:00
parent 8ca1695fab
commit 3f82c27ab9
32 changed files with 1100 additions and 442 deletions

View File

@@ -922,7 +922,9 @@ class XMPPComponent(ComponentXMPP):
}
)
if (not body or body.strip().lower() in {"[no body]", "(no text)"}) and attachments:
if (
not body or body.strip().lower() in {"[no body]", "(no text)"}
) and attachments:
attachment_urls = [
str(item.get("url") or "").strip()
for item in attachments