From: lain Date: Sat, 24 Feb 2018 17:49:09 +0000 (+0100) Subject: Fix. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=5bc7628022f45abd241ad5185feb1154d1442109;p=akkoma Fix. --- 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 @@ 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.")