Skip to content

Commit

Permalink
Add location to iCal
Browse files Browse the repository at this point in the history
  • Loading branch information
h3ndrk committed Nov 19, 2023
1 parent 5e4ee91 commit 19c056e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,14 @@ async fn handle_icalendar(
talk.description.replace('\r', "").replace('\n', ""),
)
.unwrap();
if let Some(location) = &talk.location {
write!(
response,
"LOCATION:{}\r\n",
location.replace('\r', "").replace(';', "")
)
.unwrap();
}
for nerd in talk.nerds.iter() {
let user = &users[nerd];
write!(
Expand Down

0 comments on commit 19c056e

Please sign in to comment.