feat(export): add event status in iCalendar exports
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
da7a08d130
commit
7a1bfcac49
|
@ -127,6 +127,7 @@ defmodule Mobilizon.Service.Export.ICalendar do
|
||||||
description: HTML.strip_tags(event.description),
|
description: HTML.strip_tags(event.description),
|
||||||
uid: event.uuid,
|
uid: event.uuid,
|
||||||
url: event.url,
|
url: event.url,
|
||||||
|
status: event.status,
|
||||||
organizer: organizer(event)
|
organizer: organizer(event)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,7 @@ defmodule Mobilizon.Service.ICalendarTest do
|
||||||
GEO:#{event.physical_address |> Address.coords() |> Tuple.to_list() |> Enum.join(";")}
|
GEO:#{event.physical_address |> Address.coords() |> Tuple.to_list() |> Enum.join(";")}
|
||||||
LOCATION:#{Address.representation(event.physical_address)}
|
LOCATION:#{Address.representation(event.physical_address)}
|
||||||
ORGANIZER:#{event.organizer_actor.name}
|
ORGANIZER:#{event.organizer_actor.name}
|
||||||
|
STATUS:#{event.status |> to_string() |> String.upcase()}
|
||||||
SUMMARY:#{event.title}
|
SUMMARY:#{event.title}
|
||||||
UID:#{event.uuid}
|
UID:#{event.uuid}
|
||||||
URL:#{event.url}
|
URL:#{event.url}
|
||||||
|
|
Loading…
Reference in a new issue