From 3094918e1180f41e0905d64932815d6e9808fcfd Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Fri, 5 Jan 2024 19:32:20 +0100 Subject: [PATCH] mailto fixing broken auto add format --- changedetectionio/notification.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/changedetectionio/notification.py b/changedetectionio/notification.py index c97412d8a50..d3a475e7415 100644 --- a/changedetectionio/notification.py +++ b/changedetectionio/notification.py @@ -187,8 +187,8 @@ def process_notification(n_object, datastore): if not 'format=' in url and (n_format == 'Text' or n_format == 'Markdown'): prefix = '?' if not '?' in url else '&' # Apprise format is lowercase text https://github.com/caronc/apprise/issues/633 - n_format = n_format.tolower() - url = "{}{}format={}".format(url, prefix, n_format) + n_format = n_format.lower() + url = f"{url}{prefix}format={n_format}" # If n_format == HTML, then apprise email should default to text/html and we should be sending HTML only apobj.add(url)