fix: use message as link source fallback
All checks were successful
ci / docker (push) Successful in 1m9s

This commit is contained in:
2026-02-28 23:54:06 +01:00
parent 792b162025
commit e81a69cffd

View File

@@ -62,7 +62,7 @@ def ntfy_send(dispatch_uuid, user_topic, title, message, link,
# check message for links #
if not link:
pattern = r"https:\/\/[^\s]+"
match = re.search(pattern, text)
match = re.search(pattern, message)
if match:
link = match.group(0)