mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-24 10:07:24 +00:00
Fix HTTP sig tweak on KeyId
This commit is contained in:
parent
08960d5016
commit
961e778531
|
@ -15,7 +15,7 @@ defmodule Pleroma.Signature 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
|
||||||
|
|
Loading…
Reference in a new issue