mirror of
https://github.com/caronc/apprise-api.git
synced 2025-08-23 04:10:29 +02:00
Allow an empty body when attachment is provided (#156)
This commit is contained in:
@@ -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:
|
||||
|
||||
|
Reference in New Issue
Block a user