Fix.
authorlain <lain@soykaf.club>
Sat, 24 Feb 2018 17:49:09 +0000 (18:49 +0100)
committerlain <lain@soykaf.club>
Sat, 24 Feb 2018 17:49:09 +0000 (18:49 +0100)
lib/pleroma/web/activity_pub/activity_pub_controller.ex

index 4d0d900ac5c26062c0804c82af682da55bb04b3b..17c3ca6386f02b2f86ee6aeeedfa3ac235edab53 100644 (file)
@@ -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.")