diff --git a/lib/federation/activity_stream/converter/event.ex b/lib/federation/activity_stream/converter/event.ex index 2eca4e805..76e695383 100644 --- a/lib/federation/activity_stream/converter/event.ex +++ b/lib/federation/activity_stream/converter/event.ex @@ -198,6 +198,8 @@ defmodule Mobilizon.Federation.ActivityStream.Converter.Event do defp calculate_timezone(_object, nil), do: nil + defp calculate_timezone(_object, %Address{geom: nil}), do: nil + defp calculate_timezone(_object, %Address{geom: geom}) do TimezoneDetector.detect( nil,