feat(export): add event status in iCalendar exports

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2023-10-11 17:08:31 +02:00
parent da7a08d130
commit 7a1bfcac49
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773
2 changed files with 2 additions and 0 deletions

View file

@ -127,6 +127,7 @@ defmodule Mobilizon.Service.Export.ICalendar do
description: HTML.strip_tags(event.description),
uid: event.uuid,
url: event.url,
status: event.status,
organizer: organizer(event)
}

View file

@ -27,6 +27,7 @@ defmodule Mobilizon.Service.ICalendarTest do
GEO:#{event.physical_address |> Address.coords() |> Tuple.to_list() |> Enum.join(";")}
LOCATION:#{Address.representation(event.physical_address)}
ORGANIZER:#{event.organizer_actor.name}
STATUS:#{event.status |> to_string() |> String.upcase()}
SUMMARY:#{event.title}
UID:#{event.uuid}
URL:#{event.url}