diff --git a/djangoldp_notification/models.py b/djangoldp_notification/models.py index 78fe21c7df00d670f376bd24c3b047383a325bb2..7d50db5a3ae1aecdd6c9b5ffff3d7601b85e9c8e 100644 --- a/djangoldp_notification/models.py +++ b/djangoldp_notification/models.py @@ -51,11 +51,11 @@ def send_notification(sender, instance, **kwargs): process = Thread(target=send_request, args=[subscription.inbox, url]) process.start() threads.append(process) -def send_request(target, object): +def send_request(target, objectIri): try: req=requests.post(target, json={"@context":"https://cdn.happy-dev.fr/owl/hdcontext.jsonld", - "object": object, "type": "system", "read": False}, + "object": objectIri, "type": "update"}, headers={"Content-Type": "application/ld+json"}) except: logging.error('Djangoldp_notifications: Error with request')