mirror of https://gitlab.com/bashrc2/epicyon
Check that display name exists
parent
72ea07ceac
commit
4e5c05004c
|
@ -150,10 +150,13 @@ def _htmlCalendarDay(personCache: {}, cssCache: {}, translate: {},
|
|||
# get display name from sending actor
|
||||
if ev.get('sender'):
|
||||
senderActor = ev['sender']
|
||||
dispName = \
|
||||
getDisplayName(baseDir, senderActor,
|
||||
personCache)
|
||||
if dispName:
|
||||
senderName = \
|
||||
'<a href="' + senderActor + '">' + \
|
||||
getDisplayName(baseDir, senderActor,
|
||||
personCache) + '</a>: '
|
||||
dispName + '</a>: '
|
||||
if ev.get('name'):
|
||||
eventDescription = senderName + ev['name'].strip()
|
||||
elif ev['type'] == 'Place':
|
||||
|
|
Loading…
Reference in New Issue