Fix Mastodon signature bug.
authorRoger Braun <roger@rogerbraun.net>
Wed, 3 May 2017 17:23:12 +0000 (19:23 +0200)
committerRoger Braun <roger@rogerbraun.net>
Wed, 3 May 2017 17:23:12 +0000 (19:23 +0200)
lib/pleroma/web/websub/websub.ex

index e32fc881782458b0d25fbad5aaa384ed533607c0..0d0d19c889cd4e1ba66106a2463f3eb37c07c4d5 100644 (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