diff --git a/config.lua b/config.lua index 0de4de9..451a3e7 100644 --- a/config.lua +++ b/config.lua @@ -7,7 +7,6 @@ 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 diff --git a/scripts/pleroma_restrict_unauthenticated_search.lua b/scripts/pleroma_restrict_unauthenticated_search.lua index 965f311..b907dd3 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 401, "requires authentication" + return 400, "requires authentication" else return nil end