commit: 488c06b6f5d09111733c208bd1187b91297aa9ab
parent: f78390ffdf206cc2a1c7fe3c0b9ad67cd608ce00
Author: kaniini <ariadne@dereferenced.org>
Date: Sun, 28 Jul 2019 20:25:35 +0000
Merge branch 'develop' into 'develop'
Fix HTTP sig tweak on KeyId
See merge request pleroma/pleroma!1496
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/pleroma/signature.ex b/lib/pleroma/signature.ex
@@ -15,7 +15,7 @@ defmodule Pleroma.Signature do
|> Map.put(:fragment, nil)
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", ""))
else
uri