Skip to content

Commit

Permalink
- Do not send notifications if the resource has no title
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Nov 21, 2020
1 parent 10ca45b commit c3d470e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion geonode/notifications_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ def send_notification(*args, **kwargs):
Simple wrapper around notifications.model send().
This can be called safely if notifications are not installed.
"""
if has_notifications:
resource = args[2]['resource']
if has_notifications and resource.title:
# queue for further processing if required
if settings.PINAX_NOTIFICATIONS_QUEUE_ALL:
return queue_notification(*args, **kwargs)
Expand Down

0 comments on commit c3d470e

Please sign in to comment.