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
5bc76280
Commit
5bc76280
authored
Feb 24, 2018
by
lain
Browse files
Fix.
parent
59ad395f
Pipeline
#835
failed with stage
in 2 minutes and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/activity_pub/activity_pub_controller.ex
View file @
5bc76280
...
...
@@ -34,7 +34,8 @@ def inbox(%{assigns: %{valid_signature: true}} = conn, params) do
end
def
inbox
(
conn
,
params
)
do
if
!
(
String
.
contains
(
conn
.
req_headers
[
"signature"
]
||
""
,
params
[
"actor"
]))
do
headers
=
Enum
.
into
(
conn
.
req_headers
,
%{})
if
!
(
String
.
contains
(
headers
[
"signature"
]
||
""
,
params
[
"actor"
]))
do
Logger
.
info
(
"Signature not from author, relayed message, ignoring."
)
else
Logger
.
info
(
"Signature error."
)
...
...
Write
Preview
Markdown
is supported
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