Skip to content

Commit

Permalink
mailto fixing broken auto add format
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtlmoon committed Jan 5, 2024
1 parent 0d92be3 commit 3094918
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions changedetectionio/notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3094918

Please sign in to comment.