mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 10:09:02 +00:00
Just sign with an empty string if needed.
This commit is contained in:
parent
151da344be
commit
5d9f3df714
|
@ -43,7 +43,7 @@ defmodule Pleroma.Web.Websub do
|
||||||
|> :xmerl.export_simple(:xmerl_xml)
|
|> :xmerl.export_simple(:xmerl_xml)
|
||||||
|> to_string
|
|> to_string
|
||||||
|
|
||||||
signature = sign(sub.secret, response)
|
signature = sign(sub.secret || "", response)
|
||||||
Logger.debug("Pushing to #{sub.callback}")
|
Logger.debug("Pushing to #{sub.callback}")
|
||||||
HTTPoison.post(sub.callback, response, [
|
HTTPoison.post(sub.callback, response, [
|
||||||
{"Content-Type", "application/atom+xml"},
|
{"Content-Type", "application/atom+xml"},
|
||||||
|
|
Loading…
Reference in a new issue