1
0
Fork 0
forked from mirrors/akkoma

Just sign with an empty string if needed.

This commit is contained in:
Roger Braun 2017-05-04 09:57:11 +02:00
parent 151da344be
commit 5d9f3df714

View file

@ -43,7 +43,7 @@ def publish(topic, user, activity) 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"},