mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-19 11:45:01 +00:00
Fix Mastodon signature bug.
This commit is contained in:
parent
5d7831ee3e
commit
53d05af5b6
1 changed files with 1 additions and 1 deletions
|
@ -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