forked from potsda.mn/mobilizon
fix(activitypub): do not try to calculate timezone from missing geo-coordinates
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
64237cfc26
commit
001a0ed1a5
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue