aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-05-04 09:57:11 +0200
committerRoger Braun <roger@rogerbraun.net>2017-05-04 09:57:11 +0200
commit5d9f3df714fa986367e105c2267324c8478ccf9c (patch)
tree0f20913eb5babc91a18516232e83eac0cba6d705 /lib
parent151da344beca98b2c007397cb0f8e47510bf747a (diff)
downloadpleroma-5d9f3df714fa986367e105c2267324c8478ccf9c.tar.gz
Just sign with an empty string if needed.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/websub/websub.ex2
1 files changed, 1 insertions, 1 deletions
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"},