fix: deal with empty body or title
Some checks failed
ci / docker (push) Failing after 15s

This commit is contained in:
2025-01-05 15:30:12 +01:00
parent c577802e63
commit f2137e7e4c

View File

@@ -58,6 +58,8 @@ def ntfy_send(dispatch_uuid, user_topic, title, message, ntfy_push_target, ntfy_
'''Send message via NTFY topic'''
# limit message length and title #
title = title or ""
message = message or ""
message = message[:1024]
title = title[:512]