From 6e9f673d91f89e18e078843fb5768248f36310f3 Mon Sep 17 00:00:00 2001 From: Luna Date: Fri, 2 May 2025 18:47:54 -0300 Subject: [PATCH] return 401 --- scripts/pleroma_restrict_unauthenticated_search.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pleroma_restrict_unauthenticated_search.lua b/scripts/pleroma_restrict_unauthenticated_search.lua index b907dd3..965f311 100644 --- a/scripts/pleroma_restrict_unauthenticated_search.lua +++ b/scripts/pleroma_restrict_unauthenticated_search.lua @@ -12,7 +12,7 @@ local function searchCallback(cfg, _ctx) local authheader = h["authorization"] if authheader == nil then - return 400, "requires authentication" + return 401, "requires authentication" else return nil end