From bd6c19f49545a732a8b3a8189cce7a34ae91a1b6 Mon Sep 17 00:00:00 2001
From: Jorran de Wit <jorrandewit@outlook.com>
Date: Wed, 13 Sep 2017 12:51:22 +0200
Subject: [PATCH] Personalize notifications

---
 notifications/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/notifications/views.py b/notifications/views.py
index 2170da02f..7aba49a67 100644
--- a/notifications/views.py
+++ b/notifications/views.py
@@ -123,7 +123,7 @@ def live_notification_list(request):
         struct = model_to_dict(n)
         struct['slug'] = id2slug(n.id)
         if n.actor:
-            struct['actor'] = str(n.actor)
+            struct['actor'] = '{f} {l}'.format(f=n.actor.first_name, l=n.actor.last_name)
         if n.target:
             struct['target'] = str(n.target)
             struct['forward_link'] = n.get_absolute_url()
-- 
GitLab