mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-08-01 06:22:32 +02:00
8286fb1e65
- New GET /api/path-analyzer/messages?days=N endpoint: returns channel messages from ALL channels for the last N days (clamped 1..30) with echoes attached per message (path, snr, hash_size, direction, received_at), channel names and packet hashes included. - New db.get_echoes_for_payloads(): chunked IN-clause batch fetch (<=500 params per query) instead of one query per message. - Extracted _build_channel_secrets() and _get_row_pkt_payload() helpers from get_messages(); /api/messages behavior unchanged (verified live: field set identical, packet hashes and echo paths match the new endpoint for the same messages). - Legacy rows with uncomputable pkt_payload degrade to packet_hash null + empty echoes instead of being dropped. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>