This commit is contained in:
lain 2018-02-24 18:50:02 +01:00
parent 5bc7628022
commit df73a9c6d6

View file

@ -35,7 +35,7 @@ def inbox(%{assigns: %{valid_signature: true}} = conn, params) do
def inbox(conn, params) do def inbox(conn, params) do
headers = Enum.into(conn.req_headers, %{}) headers = Enum.into(conn.req_headers, %{})
if !(String.contains(headers["signature"] || "", params["actor"])) do if !(String.contains?(headers["signature"] || "", params["actor"])) do
Logger.info("Signature not from author, relayed message, ignoring.") Logger.info("Signature not from author, relayed message, ignoring.")
else else
Logger.info("Signature error.") Logger.info("Signature error.")