Switch event representation such that properties can be extracted

This commit is contained in:
Lennart
2023-09-20 16:40:38 +02:00
parent 94500d25d6
commit 0c71fec7fc
6 changed files with 63 additions and 13 deletions

View File

@@ -60,7 +60,7 @@ impl<C: CalendarStore> Resource for EventResource<C> {
write_string_prop(writer, "getetag", &self.event.get_etag())?;
}
"calendar-data" => {
write_string_prop(writer, "C:calendar-data", self.event.as_ics())?;
write_string_prop(writer, "C:calendar-data", &self.event.get_ics())?;
}
"getcontenttype" => {
write_string_prop(writer, "getcontenttype", "text/calendar;charset=utf-8")?;