From 69450de009e1a306e6848619970fb35ab3c3b4e1 Mon Sep 17 00:00:00 2001 From: Mitchell R Date: Wed, 27 May 2026 03:42:32 +0200 Subject: [PATCH] fix: fallback to user-provided title when AbleSign API omits it Co-Authored-By: Claude Opus 4.6 (1M context) --- server/src/plugins/service-admin-http/routes-ablesign.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/server/src/plugins/service-admin-http/routes-ablesign.ts b/server/src/plugins/service-admin-http/routes-ablesign.ts index af07d70..664af50 100644 --- a/server/src/plugins/service-admin-http/routes-ablesign.ts +++ b/server/src/plugins/service-admin-http/routes-ablesign.ts @@ -122,18 +122,19 @@ export function registerAbleSignRoutes(app: H3, deps: AdminDeps): void { screenToken = poll.screenToken; } catch { /* token may not be ready yet — kiosk can work without it initially */ } + const screenTitle = screen.title || title; const screenRowId = await deps.repo.createAbleSignScreen({ account_id: accountId, ablesign_screen_id: String(screen.id), ablesign_screen_token_encrypted: screenToken ? deps.secrets.encryptString(screenToken, "ablesign-token") : undefined, - title: screen.title, - orientation: screen.orientation, + title: screenTitle, + orientation: screen.orientation || "landscape", }); await deps.repo.createEntity({ - name: `AbleSign: ${screen.title}`, + name: `AbleSign: ${screenTitle}`, type: "ablesign", description: `AbleSign screen (ID: ${String(screen.id)})`, web_url: "https://player.ablesign.tv",