Fix HTTP sig tweak on KeyId

This commit is contained in:
Thomas Sileo 2019-07-28 14:17:56 +02:00
parent 08960d5016
commit 961e778531
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ def key_id_to_actor_id(key_id) do
|> Map.put(:fragment, nil) |> Map.put(:fragment, nil)
uri = uri =
if String.ends_with?(uri.path, "/publickey") do if not is_nil(uri.path) and String.ends_with?(uri.path, "/publickey") do
Map.put(uri, :path, String.replace(uri.path, "/publickey", "")) Map.put(uri, :path, String.replace(uri.path, "/publickey", ""))
else else
uri uri