Skip to content

Commit

Permalink
[fix](hashid) fix recipient to work with hashid
Browse files Browse the repository at this point in the history
  • Loading branch information
areski committed Dec 14, 2022
1 parent 6ecb70e commit 3467061
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions notifications/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 3467061

Please sign in to comment.