From c345290354f73d26a3b9be4f0e0db10c72684c4f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 6 Mar 2021 18:20:10 +0000 Subject: [PATCH] Getting calendar item actor --- webapp_calendar.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/webapp_calendar.py b/webapp_calendar.py index 5851abda6..a5bc1611d 100644 --- a/webapp_calendar.py +++ b/webapp_calendar.py @@ -135,12 +135,6 @@ def _htmlCalendarDay(personCache: {}, cssCache: {}, translate: {}, eventDescription = None eventPlace = None postId = None - # get display name from sending actor - senderName = '' - if eventPost.get('actor'): - actor = eventPost['actor'] - senderName = '' + \ - getDisplayName(baseDir, actor, personCache) + ': ' # get the time place and description for ev in eventPost: if ev['type'] == 'Event': @@ -152,6 +146,15 @@ def _htmlCalendarDay(personCache: {}, cssCache: {}, translate: {}, "%Y-%m-%dT%H:%M:%S%z") eventTime = eventDate.strftime("%H:%M").strip() if ev.get('name'): + # get display name from sending actor + senderName = '' + # if ev.get('actor'): + # actor = ev['actor'] + # senderName = \ + # '' + \ + # getDisplayName(baseDir, actor, + # personCache) + \ + # ': ' eventDescription = senderName + ev['name'].strip() elif ev['type'] == 'Place': if ev.get('name'):