From 6e9f673d91f89e18e078843fb5768248f36310f3 Mon Sep 17 00:00:00 2001 From: Luna Date: Fri, 2 May 2025 18:47:54 -0300 Subject: [PATCH 1/2] 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 From 08f17f812b6b33a248b822f4f16e9d7758a90ae3 Mon Sep 17 00:00:00 2001 From: Luna Date: Fri, 2 May 2025 18:47:58 -0300 Subject: [PATCH 2/2] log when config is found --- config.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/config.lua b/config.lua index 451a3e7..0de4de9 100644 --- a/config.lua +++ b/config.lua @@ -7,6 +7,7 @@ local function findConfigFile() local possible_config_path = config_directory .. "/" .. "conf.lua" local fd, res = io.open(possible_config_path, "rb") if fd then + log('config found at ' .. possible_config_path) local data = fd:read("*a") fd:close() return data