add event image in iCal export (#842)

This commit is contained in:
Laurent GAY
2025-07-31 13:43:15 +02:00
committed by setop
parent 35b73eb20c
commit d2ce0de020
4 changed files with 26 additions and 5 deletions

View File

@@ -149,6 +149,16 @@ defmodule Mobilizon.Service.Export.ICalendar do
icalendar_event
end
icalendar_event =
if event.picture do
%ICalendar.Event{
icalendar_event
| attach: {event.picture.file.url, event.picture.file.content_type}
}
else
icalendar_event
end
icalendar_event
end