From dee6be0b88dfd2cd98f76429f20a41c60bcf5ff4 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Wed, 6 Jan 2021 18:40:33 +0100 Subject: [PATCH] Send app specific data with Notification filter signal --- msgio/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msgio/helpers.py b/msgio/helpers.py index 6c4970a..c397ede 100644 --- a/msgio/helpers.py +++ b/msgio/helpers.py @@ -5,7 +5,7 @@ from dbsettings.functions import getValue make_message = filtersignals.FilterSignal() def run_filters(notification): - return make_message.send_robust(notification.__class__, recipient=notification.recipient, content=notification.content, app=notification.app, data=notification.data)["content"] + return make_message.send_robust(notification.__class__, recipient=notification.recipient, content=notification.content, app=notification.app, data=notification.data, _protected=["data"])["content"] @filtersignals.receiver(make_message, 500) def notification_placeholders(sender, **kwargs):