Fix usage of is_bitstring instead of is_binary

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-04-08 16:41:49 +02:00
parent b79c2815fc
commit bd53bfc46b
10 changed files with 19 additions and 13 deletions

View File

@@ -155,7 +155,7 @@ defmodule Mobilizon.Federation.ActivityStream.Converter.Event do
end
@spec get_address(map | binary | nil) :: integer | nil
defp get_address(address_url) when is_bitstring(address_url) do
defp get_address(address_url) when is_binary(address_url) do
get_address(%{"id" => address_url})
end