From 175d2bbb4dc252b0c78eb7719cd88f05787a58ba Mon Sep 17 00:00:00 2001 From: teamchong <25894545+teamchong@users.noreply.github.com> Date: Wed, 27 May 2026 08:13:06 -0400 Subject: [PATCH] fix(dashboard): parse ?id=N on /proxy-latest-png Router was calling dashboard.servePng() with no argument, so every per-id thumbnail URL fell back to 'latest image' and all N thumbs on a row rendered the same PNG. Forward the parsed id from the query string. --- src/node.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/node.ts b/src/node.ts index 019bff2..9ce5439 100644 --- a/src/node.ts +++ b/src/node.ts @@ -189,9 +189,12 @@ async function dispatchDashboard( case 'recent': if (method !== 'GET') return undefined; return dashboard.serveRecent(); - case 'png': + case 'png': { if (method !== 'GET') return undefined; - return dashboard.servePng(); + const idRaw = url.searchParams.get('id'); + const idNum = idRaw != null ? Number(idRaw) : NaN; + return dashboard.servePng(Number.isFinite(idNum) ? idNum : undefined); + } case 'api-sessions': { if (method !== 'GET') return undefined; return dashboard.serveSessionsJson({