mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-23 01:35:28 +00:00
Fix Mastodon signature bug.
This commit is contained in:
parent
5d7831ee3e
commit
53d05af5b6
|
@ -52,7 +52,7 @@ defmodule Pleroma.Web.Websub do
|
|||
end
|
||||
|
||||
def sign(secret, doc) do
|
||||
:crypto.hmac(:sha, secret, to_string(doc)) |> Base.encode16
|
||||
:crypto.hmac(:sha, secret, to_string(doc)) |> Base.encode16 |> String.downcase
|
||||
end
|
||||
|
||||
def incoming_subscription_request(user, %{"hub.mode" => "subscribe"} = params) do
|
||||
|
|
Loading…
Reference in a new issue