projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Just sign with an empty string if needed.
[akkoma]
/
lib
/
pleroma
/
web
/
websub
/
websub.ex
diff --git
a/lib/pleroma/web/websub/websub.ex
b/lib/pleroma/web/websub/websub.ex
index 0d0d19c889cd4e1ba66106a2463f3eb37c07c4d5..ba86db50e6ede23f17e682783159099531a3e5e4 100644
(file)
--- a/
lib/pleroma/web/websub/websub.ex
+++ b/
lib/pleroma/web/websub/websub.ex
@@
-43,7
+43,8
@@
defmodule Pleroma.Web.Websub do
|> :xmerl.export_simple(:xmerl_xml)
|> to_string
|> :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}"}
HTTPoison.post(sub.callback, response, [
{"Content-Type", "application/atom+xml"},
{"X-Hub-Signature", "sha1=#{signature}"}