Fix Telegram dedup identity and legacy Markdown escaping

This commit is contained in:
calesthio
2026-03-24 18:48:55 -07:00
parent b7322f1c7e
commit 5c08355e38
3 changed files with 40 additions and 8 deletions

View File

@@ -201,7 +201,15 @@ export class MemoryManager {
bls: data.bls,
treasury: data.treasury,
gscpi: data.gscpi,
tg: { posts: data.tg?.posts, urgent: (data.tg?.urgent || []).map(p => ({ text: p.text, date: p.date })) },
tg: {
posts: data.tg?.posts,
urgent: (data.tg?.urgent || []).map(p => ({
text: p.text,
date: p.date,
channel: p.channel || p.chat || null,
postId: p.postId || null,
})),
},
thermal: (data.thermal || []).map(t => ({ region: t.region, det: t.det, night: t.night, hc: t.hc })),
air: (data.air || []).map(a => ({ region: a.region, total: a.total })),
nuke: (data.nuke || []).map(n => ({ site: n.site, anom: n.anom, cpm: n.cpm })),