Merge branch 'fix-ics-status' into 'main'

feat(export): add event status in iCalendar exports

See merge request framasoft/mobilizon!1469
This commit is contained in:
Thomas Citharel 2023-10-11 15:36:30 +00:00
commit 5681e6e8b8
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}