mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2026-10-07 04:22:01 +00:00
mailto fixing broken auto add format
This commit is contained in:
1 parent
0d92be348a
commit
3094918e11
1 file changed
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user