From 333b29e0a5963a79ad1de4e1c0ece28b816158d0 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Fri, 13 Feb 2026 16:34:31 -0800 Subject: [PATCH] Fix: Update safesearch parameter to valid value --- functions/[[path]].js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/[[path]].js b/functions/[[path]].js index a765379..df908b0 100644 --- a/functions/[[path]].js +++ b/functions/[[path]].js @@ -99,7 +99,8 @@ async function sha256(str) { } async function braveImageSearch(query, apiKey) { - const searchUrl = `https://api.search.brave.com/res/v1/images/search?q=${encodeURIComponent(query)}&count=5&safesearch=moderate`; + // Changed safesearch from 'moderate' to 'off' as per API requirements + const searchUrl = `https://api.search.brave.com/res/v1/images/search?q=${encodeURIComponent(query)}&count=5&safesearch=off`; const res = await fetch(searchUrl, { headers: {