Send app specific data with Notification filter signal

This commit is contained in:
Kumi 2021-01-06 18:40:33 +01:00
parent 9d50530ca1
commit dee6be0b88

View file

@ -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):