Commit 53d05af5 authored by lain's avatar lain
Browse files

Fix Mastodon signature bug.

parent 5d7831ee
......@@ -52,7 +52,7 @@ def publish(topic, user, activity) 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
def incoming_subscription_request(user, %{"hub.mode" => "subscribe"} = params) do
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment