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.

feat(news): tag each source with its language and region

nirholas58570c098d32
diff --git a/api/_lib/news-sources.js b/api/_lib/news-sources.js
index 5325a0824..a4094f8ba 100644
--- a/api/_lib/news-sources.js
+++ b/api/_lib/news-sources.js
@@ -38,7 +38,7 @@ export const NEWS_SOURCES = {
bits_media: { name: 'Bits.Media', url: 'https://bits.media/rss2/', category: 'general', language: 'ru', region: 'europe' },
blockchainmedia: { name: 'Blockchain Media', url: 'https://blockchainmedia.id/feed/', category: 'general', language: 'id', region: 'asia' },
blockmedia: { name: 'Block Media', url: 'https://www.blockmedia.co.kr/feed/', category: 'general', language: 'ko', region: 'asia' },
- blocktempo: { name: 'BlockTempo', url: 'https://www.blocktempo.com/feed/', category: 'general', tier: 'tier3', credibility: 0.75 },
+ blocktempo: { name: 'BlockTempo (動區動趨)', url: 'https://www.blocktempo.com/feed/', category: 'general', tier: 'tier3', credibility: 0.75, language: 'zh', region: 'asia' },
blockworks: { name: 'Blockworks', url: 'https://blockworks.co/feed', category: 'general', tier: 'tier2', credibility: 0.9 },
blokt: { name: 'Blokt', url: 'https://blokt.com/feed', category: 'general' },
btcecho: { name: 'BTC-ECHO', url: 'https://www.btc-echo.de/feed/', category: 'general', language: 'de', region: 'europe' },
diff --git a/tests/news-sources.test.js b/tests/news-sources.test.js
index 5b3291e11..66965cf1a 100644
--- a/tests/news-sources.test.js
+++ b/tests/news-sources.test.js
@@ -51,6 +51,20 @@ describe('registry shape', () => {
// English feeds are the untagged default — never spelled out explicitly.
expect(entries.filter(([, s]) => s.language === 'en')).toHaveLength(0);
});
+
+ // Untagged means "English" to sourcesForLanguage(), so a non-English
+ // publisher that ships without a language tag silently interleaves its
+ // headlines into the default /api/news/feed view. BlockTempo (a Traditional
+ // Chinese Taiwanese outlet) did exactly that until 2026-08-14 — it reads as
+ // an English brand name, which is the trap. Pin the publishers whose feed
+ // language cannot be inferred from their name.
+ it('tags non-English publishers that carry an English brand name', () => {
+ for (const key of ['blocktempo']) {
+ expect(NEWS_SOURCES[key], `${key} left the registry`).toBeDefined();
+ expect(NEWS_SOURCES[key].language, `${key} must not fall into the untagged English pool`).toBe('zh');
+ }
+ expect(sourcesForLanguage('en')).not.toContain('blocktempo');
+ });
});
describe('hosts we must not regress onto', () => {