atmo.rsvp
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

small fix

Florian 3774598b ea718fc4

+12 -4
+11 -3
src/lib/cal/ical.ts
··· 146 146 lines.push(`DESCRIPTION:${escapeText(descParts.join('\n'))}`); 147 147 } 148 148 149 - const location = getLocationString(eventData.locations); 150 - if (location) { 151 - lines.push(`LOCATION:${escapeText(location)}`); 149 + const locationParts: string[] = []; 150 + const room = (eventData as { additionalData?: Record<string, unknown> }).additionalData?.room; 151 + if (typeof room === 'string' && room && room !== 'none') { 152 + locationParts.push(room); 153 + } 154 + const address = getLocationString(eventData.locations); 155 + if (address) { 156 + locationParts.push(address); 157 + } 158 + if (locationParts.length > 0) { 159 + lines.push(`LOCATION:${escapeText(locationParts.join(', '))}`); 152 160 } 153 161 154 162 if (url) {
+1 -1
src/routes/p/[actor]/calendar.ics/+server.ts
··· 65 65 const events: ICalEvent[] = allEvents.map((r) => ({ 66 66 eventData: r, 67 67 uid: r.uri, 68 - url: `https://atmo.rsvp/p/${params.actor}/e/${r.rkey}` 68 + url: `https://atmo.rsvp/p/${r.did}/e/${r.rkey}` 69 69 })); 70 70 71 71 const calendarName = `${params.actor}'s Calendar`;