Check that display name exists

main
Bob Mottram 2021-03-06 18:44:33 +00:00
parent 72ea07ceac
commit 4e5c05004c
1 changed files with 6 additions and 3 deletions

View File

@ -150,10 +150,13 @@ def _htmlCalendarDay(personCache: {}, cssCache: {}, translate: {},
# get display name from sending actor
if ev.get('sender'):
senderActor = ev['sender']
senderName = \
'<a href="' + senderActor + '">' + \
dispName = \
getDisplayName(baseDir, senderActor,
personCache) + '</a>: '
personCache)
if dispName:
senderName = \
'<a href="' + senderActor + '">' + \
dispName + '</a>: '
if ev.get('name'):
eventDescription = senderName + ev['name'].strip()
elif ev['type'] == 'Place':