Allow anonymous participants to have timezone metadata

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-10-13 12:55:49 +02:00
parent 44f90c7b0b
commit 4de78f58e0
7 changed files with 38 additions and 13 deletions

View File

@@ -932,11 +932,11 @@ defmodule Mobilizon.Web.Resolvers.EventTest do
test "update_event/3 updates an event", %{conn: conn, actor: actor, user: user} do
event = insert(:event, organizer_actor: actor)
_creator = insert(:participant, event: event, actor: actor, role: :creator)
creator = insert(:participant, event: event, actor: actor, role: :creator)
participant_user = insert(:user)
participant_actor = insert(:actor, user: participant_user)
_participant =
participant =
insert(:participant, event: event, actor: participant_actor, role: :participant)
address = insert(:address)
@@ -1009,6 +1009,7 @@ defmodule Mobilizon.Web.Resolvers.EventTest do
assert_delivered_email(
Email.Event.event_updated(
creator,
user.email,
actor,
event,
@@ -1019,6 +1020,7 @@ defmodule Mobilizon.Web.Resolvers.EventTest do
assert_delivered_email(
Email.Event.event_updated(
participant,
participant_user.email,
participant_actor,
event,