Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(news): build the failover request from a literal host so audit:upstreams attributes it to cryptocurrency.cv

nirholas7fa6df8949d9
diff --git a/api/_lib/news-failover.js b/api/_lib/news-failover.js
index 269a5a1c8..84f36de51 100644
--- a/api/_lib/news-failover.js
+++ b/api/_lib/news-failover.js
@@ -60,13 +60,12 @@ export function mapHostedArticle(raw) {
* @returns {Promise<Array>}
*/
export async function fetchHostedNews({ category, lang } = {}) {
- const url = new URL(FAILOVER_NEWS_URL);
- url.searchParams.set('limit', String(FAILOVER_LIMIT));
- if (category && category !== 'all') url.searchParams.set('category', category);
- if (lang && lang !== 'all') url.searchParams.set('lang', lang);
+ const params = new URLSearchParams({ limit: String(FAILOVER_LIMIT) });
+ if (category && category !== 'all') params.set('category', category);
+ if (lang && lang !== 'all') params.set('lang', lang);
const t0 = Date.now();
try {
- const body = await fetchUpstreamJson(url.toString(), {}, {
+ const body = await fetchUpstreamJson(`${FAILOVER_NEWS_URL}?${params}`, {}, {
name: BREAKER_NAME,
timeoutMs: FAILOVER_TIMEOUT_MS,
attempts: 1,