mirror of
https://github.com/FAUSheppy/atlantis-event-dispatcher
synced 2026-03-09 17:21:43 +01:00
fix: use message as link source fallback
All checks were successful
ci / docker (push) Successful in 1m9s
All checks were successful
ci / docker (push) Successful in 1m9s
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user