Skip to content
GitLab
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
97252a27
Commit
97252a27
authored
Dec 02, 2018
by
Maksim
Browse files
fix http request in Salmon
parent
ec34de0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/salmon/salmon.ex
View file @
97252a27
...
...
@@ -158,14 +158,16 @@ def remote_users(%{data: %{"to" => to} = data}) do
end
defp
send_to_user
(%{
info:
%{
salmon:
salmon
}},
feed
,
poster
)
do
with
{
:ok
,
%{
status
_code
:
code
}}
<-
with
{
:ok
,
%{
status:
code
}}
<-
poster
.
(
salmon
,
feed
,
[{
"Content-Type"
,
"application/magic-envelope+xml"
}],
timeout:
10000
,
recv_timeout:
20000
,
hackney:
[
pool:
:default
]
adapter:
[
timeout:
10000
,
recv_timeout:
20000
,
pool:
:default
]
)
do
Logger
.
debug
(
fn
->
"Pushed to
#{
salmon
}
, code
#{
code
}
"
end
)
else
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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