Fix fetching events with addresses that's not objects
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
4eb15b5ebf
commit
2bf8148951
|
@ -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, %{
|
||||||
|
|
Loading…
Reference in a new issue