From 3467061c6a93789d59f1a1e1fde8d72f0cd3171f Mon Sep 17 00:00:00 2001 From: areski Date: Wed, 16 Nov 2022 17:40:04 +0100 Subject: [PATCH] [fix](hashid) fix recipient to work with hashid --- notifications/views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/notifications/views.py b/notifications/views.py index a56aaa55..7b627d7d 100644 --- a/notifications/views.py +++ b/notifications/views.py @@ -177,6 +177,8 @@ def live_unread_notification_list(request): struct['slug'] = id2slug(notification.id) if notification.actor: struct['actor'] = str(notification.actor) + if notification.recipient_id: + struct['recipient'] = str(notification.recipient_id) if notification.target: struct['target'] = str(notification.target) if notification.action_object: @@ -225,6 +227,8 @@ def live_all_notification_list(request): struct['slug'] = id2slug(notification.id) if notification.actor: struct['actor'] = str(notification.actor) + if notification.recipient_id: + struct['recipient'] = str(notification.recipient_id) if notification.target: struct['target'] = str(notification.target) if notification.action_object: