|
|
@@ -44,6 +44,7 @@ defmodule Pleroma.Web.Websub do |
|
|
|
|> to_string |
|
|
|
|
|
|
|
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}"} |
|
|
|