Fix fetching events with addresses that's not objects

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-10-28 19:13:13 +02:00
parent 4eb15b5ebf
commit 2bf8148951
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -24,7 +24,7 @@ defmodule Mobilizon.Federation.ActivityStream.Converter.Address do
} }
res = res =
if is_nil(object["address"]) do if is_nil(object["address"]) or not is_map(object["address"]) do
res res
else else
Map.merge(res, %{ Map.merge(res, %{