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

index 17c3ca6386f02b2f86ee6aeeedfa3ac235edab53..edbcb938a0b7eee90fbe3bc019dd055a2560f1fc 100644 (file)
@@ -35,7 +35,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubController do
 
   def inbox(conn, params) do
     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.")
     else
       Logger.info("Signature error.")