Fix Mastodon signature bug.
This commit is contained in:
parent
5d7831ee3e
commit
53d05af5b6
|
@ -52,7 +52,7 @@ def publish(topic, user, activity) do
|
||||||
end
|
end
|
||||||
|
|
||||||
def sign(secret, doc) do
|
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
|
end
|
||||||
|
|
||||||
def incoming_subscription_request(user, %{"hub.mode" => "subscribe"} = params) do
|
def incoming_subscription_request(user, %{"hub.mode" => "subscribe"} = params) do
|
||||||
|
|
Loading…
Reference in a new issue