From 3c2dfba8808b0fe3c85feadffd28848733455c8d Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 16 Jun 2021 17:42:50 +0200 Subject: [PATCH] Add .ics to the event files names attached to email Signed-off-by: Thomas Citharel --- lib/web/email/email.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/web/email/email.ex b/lib/web/email/email.ex index 7f6cfd2d4..18b9639de 100644 --- a/lib/web/email/email.ex +++ b/lib/web/email/email.ex @@ -46,7 +46,7 @@ defmodule Mobilizon.Web.Email do with {:ok, %Event{} = event} <- Events.get_event_with_preload(event_id), {:ok, event_ics_data} <- ICalendar.export_event(event) do put_attachment(email, %Bamboo.Attachment{ - filename: Slugger.slugify_downcase(event.title), + filename: "#{Slugger.slugify_downcase(event.title)}.ics", content_type: "text/calendar", data: event_ics_data })