Just sign with an empty string if needed.
[akkoma] / lib / pleroma / web / websub / websub.ex
index 0d0d19c889cd4e1ba66106a2463f3eb37c07c4d5..ba86db50e6ede23f17e682783159099531a3e5e4 100644 (file)
@@ -43,7 +43,8 @@ defmodule Pleroma.Web.Websub do
       |> :xmerl.export_simple(:xmerl_xml)
       |> to_string
 
-      signature = sign(sub.secret, response)
+      signature = sign(sub.secret || "", response)
+      Logger.debug("Pushing to #{sub.callback}")
       HTTPoison.post(sub.callback, response, [
             {"Content-Type", "application/atom+xml"},
             {"X-Hub-Signature", "sha1=#{signature}"}