Check port in compare_urls
This commit is contained in:
parent
c3bada8428
commit
1cf59ef24a
|
@ -273,7 +273,8 @@ defmodule Mobilizon.Federation.ActivityPub.Utils do
|
||||||
compare_uris?(uri_1, uri_2)
|
compare_uris?(uri_1, uri_2)
|
||||||
end
|
end
|
||||||
|
|
||||||
defp compare_uris?(%URI{} = id_uri, %URI{} = other_uri), do: id_uri.host == other_uri.host
|
defp compare_uris?(%URI{} = id_uri, %URI{} = other_uri),
|
||||||
|
do: id_uri.host == other_uri.host && id_uri.port == other_uri.port
|
||||||
|
|
||||||
@spec origin_check_from_id?(String.t(), String.t()) :: boolean()
|
@spec origin_check_from_id?(String.t(), String.t()) :: boolean()
|
||||||
def origin_check_from_id?(id, other_id) when is_binary(other_id) do
|
def origin_check_from_id?(id, other_id) when is_binary(other_id) do
|
||||||
|
|
Loading…
Reference in a new issue