From: Roger Braun Date: Thu, 4 May 2017 07:57:11 +0000 (+0200) Subject: Just sign with an empty string if needed. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=5d9f3df714fa986367e105c2267324c8478ccf9c;p=akkoma Just sign with an empty string if needed. --- diff --git a/lib/pleroma/web/websub/websub.ex b/lib/pleroma/web/websub/websub.ex index c1532b6ce..ba86db50e 100644 --- a/lib/pleroma/web/websub/websub.ex +++ b/lib/pleroma/web/websub/websub.ex @@ -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"},