From 5bc7628022f45abd241ad5185feb1154d1442109 Mon Sep 17 00:00:00 2001 From: lain Date: Sat, 24 Feb 2018 18:49:09 +0100 Subject: [PATCH] Fix. --- lib/pleroma/web/activity_pub/activity_pub_controller.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pleroma/web/activity_pub/activity_pub_controller.ex b/lib/pleroma/web/activity_pub/activity_pub_controller.ex index 4d0d900ac..17c3ca638 100644 --- a/lib/pleroma/web/activity_pub/activity_pub_controller.ex +++ b/lib/pleroma/web/activity_pub/activity_pub_controller.ex @@ -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.")