mailto fixing broken auto add format

This commit is contained in:
dgtlmoon committed 2024-01-05 19:32:20 +01:00
1 parent 0d92be348a
commit 3094918e11
1 file changed
+2 -2
+2 -2
View File
@@ -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)