Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
5d9f3df7
Commit
5d9f3df7
authored
May 04, 2017
by
lain
Browse files
Just sign with an empty string if needed.
parent
151da344
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/websub/websub.ex
View file @
5d9f3df7
...
...
@@ -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"
},
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment