FIX: The CN of the organizer may not necessarily be set in calendar.ical

This commit is contained in:
Fabio Manganiello 2022-02-17 10:55:35 +01:00
parent 94bb3e0541
commit 71cb73cf63
Signed by: blacklight
GPG Key ID: D90FBA7F76362774
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class CalendarIcalPlugin(Plugin, CalendarInterface):
'htmlLink': str(event.get('url')) if event.get('url') else None,
'organizer': {
'email': str(event.get('organizer')).replace('MAILTO:', ''),
'displayName': event.get('organizer').params['cn']
'displayName': event.get('organizer').params.get('cn')
} if event.get('organizer') else None,
'created': cls._convert_timestamp(event, 'created'),