Just sign with an empty string if needed.
authorRoger Braun <roger@rogerbraun.net>
Thu, 4 May 2017 07:57:11 +0000 (09:57 +0200)
committerRoger Braun <roger@rogerbraun.net>
Thu, 4 May 2017 07:57:11 +0000 (09:57 +0200)
lib/pleroma/web/websub/websub.ex

index c1532b6ce4393123e4765a747ec1e23219d0e41a..ba86db50e6ede23f17e682783159099531a3e5e4 100644 (file)
@@ -43,7 +43,7 @@ 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"},