From 076bb2cb04d7f968f1952b623204a5df23aee4b9 Mon Sep 17 00:00:00 2001 From: Kumi 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):