Fix Mastodon signature bug.

This commit is contained in:
Roger Braun 2017-05-03 19:23:12 +02:00
parent 5d7831ee3e
commit 53d05af5b6

View file

@ -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