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 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