Commit 5d9f3df7 authored by lain's avatar lain
Browse files

Just sign with an empty string if needed.

parent 151da344
......@@ -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"},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment