diff --git a/ephios/core/services/notifications/types.py b/ephios/core/services/notifications/types.py index 3a4f094f0..cac10c659 100644 --- a/ephios/core/services/notifications/types.py +++ b/ephios/core/services/notifications/types.py @@ -549,7 +549,9 @@ def send(cls, event: Event, content: str): "event_id": event.id, "content": content, "event_title": event.title, - "event_url": participant.reverse_event_detail(event), + "event_url": ( + participant.reverse_event_detail(event) if participant.email else None + ), }, ) )