From 601174da4553a87b07224a86921594603473ddfe Mon Sep 17 00:00:00 2001 From: Bo Frederiksen Date: Wed, 16 Jul 2025 22:48:45 +0200 Subject: [PATCH 1/2] Update views.py Add a calendar name to the ICS, to give Giggity and other clients a conference name. Inspired from https://www.paris-web.fr/2025/conferences-paris-web-2025.ics We could also add a `X-WR-CALDESC`description, but the `X-WR-CALNAME` seems to be the most important one. --- src/program/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/program/views.py b/src/program/views.py index 7c749ad67..49d931094 100644 --- a/src/program/views.py +++ b/src/program/views.py @@ -101,6 +101,7 @@ def get(self, request, *args, **kwargs): cal = icalendar.Calendar() cal.add("prodid", "-//BornHack Website iCal Generator//bornhack.dk//") cal.add("version", "2.0") + cal.add("X-WR-CALNAME", "BornHack") for slot in event_slots: cal.add_component(slot.get_ics_event()) From 450cf32d658befdae31d8a673071e531cb44c1da Mon Sep 17 00:00:00 2001 From: Bo Frederiksen Date: Thu, 17 Jul 2025 12:46:33 +0200 Subject: [PATCH 2/2] Update views.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It turns out that [RFC7986](https://www.rfc-editor.org/rfc/rfc7986#section-5.1) has standardized on ǸAME`. --- src/program/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/program/views.py b/src/program/views.py index 49d931094..b6138cf17 100644 --- a/src/program/views.py +++ b/src/program/views.py @@ -101,6 +101,7 @@ def get(self, request, *args, **kwargs): cal = icalendar.Calendar() cal.add("prodid", "-//BornHack Website iCal Generator//bornhack.dk//") cal.add("version", "2.0") + cal.add("NAME", "BornHack") cal.add("X-WR-CALNAME", "BornHack") for slot in event_slots: cal.add_component(slot.get_ics_event())