projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59ad395
)
Fix.
author
lain
<lain@soykaf.club>
Sat, 24 Feb 2018 17:49:09 +0000
(18:49 +0100)
committer
lain
<lain@soykaf.club>
Sat, 24 Feb 2018 17:49:09 +0000
(18:49 +0100)
lib/pleroma/web/activity_pub/activity_pub_controller.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/activity_pub/activity_pub_controller.ex
b/lib/pleroma/web/activity_pub/activity_pub_controller.ex
index 4d0d900ac5c26062c0804c82af682da55bb04b3b..17c3ca6386f02b2f86ee6aeeedfa3ac235edab53 100644
(file)
--- a/
lib/pleroma/web/activity_pub/activity_pub_controller.ex
+++ b/
lib/pleroma/web/activity_pub/activity_pub_controller.ex
@@
-34,7
+34,8
@@
defmodule Pleroma.Web.ActivityPub.ActivityPubController 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.")