Browse Source

Fix Mastodon signature bug.

tags/v0.9.9
Roger Braun 7 years ago
parent
commit
53d05af5b6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/pleroma/web/websub/websub.ex

+ 1
- 1
lib/pleroma/web/websub/websub.ex 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


Loading…
Cancel
Save