Allow an empty body when attachment is provided (#156)

This commit is contained in:
Gerald
2023-12-24 03:35:10 +08:00
committed by GitHub
parent 9d3f8c7a33
commit 4ad2bb1c03
3 changed files with 22 additions and 1 deletions

View File

@@ -691,7 +691,7 @@ class NotifyView(View):
content['title'] = request.GET['title']
# Some basic error checking
if not content.get('body') or \
if not content.get('body') and not attach or \
content.get('type', apprise.NotifyType.INFO) \
not in apprise.NOTIFY_TYPES: