From: lain Date: Thu, 15 Feb 2018 18:58:26 +0000 (+0100) Subject: HttpSignature Plug: Skip if already valid. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=38b61fddfef6548f6c5999b9dc2b992a0db1a5d8;p=akkoma HttpSignature Plug: Skip if already valid. --- diff --git a/lib/pleroma/plugs/http_signature.ex b/lib/pleroma/plugs/http_signature.ex index 17030cdbf..b1e0d91a7 100644 --- a/lib/pleroma/plugs/http_signature.ex +++ b/lib/pleroma/plugs/http_signature.ex @@ -6,6 +6,10 @@ defmodule Pleroma.Web.Plugs.HTTPSignaturePlug do options end + def call(%{assigns: %{valid_signature: true}} = conn, opts) do + conn + end + def call(conn, opts) do if get_req_header(conn, "signature") do conn = conn