Skip to content

Commit a5856b3

Browse files
authored
Add a calendar name to the ICS feed. (#1912)
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.
1 parent b9f2a96 commit a5856b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/program/views.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ def get(self, request, *args, **kwargs):
101101
cal = icalendar.Calendar()
102102
cal.add("prodid", "-//BornHack Website iCal Generator//bornhack.dk//")
103103
cal.add("version", "2.0")
104+
cal.add("NAME", self.camp.title)
105+
cal.add("X-WR-CALNAME", self.camp.title)
104106
for slot in event_slots:
105107
cal.add_component(slot.get_ics_event())
106108

0 commit comments

Comments
 (0)