From 38b61fddfef6548f6c5999b9dc2b992a0db1a5d8 Mon Sep 17 00:00:00 2001 From: lain Date: Thu, 15 Feb 2018 19:58:26 +0100 Subject: [PATCH] HttpSignature Plug: Skip if already valid. --- lib/pleroma/plugs/http_signature.ex | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.45.2