From 24808e35f67edfd377bcfd279efdde691fa5aa38 Mon Sep 17 00:00:00 2001 From: Christian Heubaum Date: Fri, 3 Jul 2026 00:48:12 +0200 Subject: [PATCH] =?UTF-8?q?Vertretungs-Foto:=20extras=20(photoB64=20+=20of?= =?UTF-8?q?flinePhotoB64)=20ber=C3=BCcksichtigen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Foto-Auflösung für Vertretungen prüft nun auch manuelle Uploads und synchronisierte Server-Fotos aus extras, nicht nur sub.photoUrl und Mitglieder-Match. Ines-Benedict-Fall (Foto nur als Base64 in extras) wird jetzt korrekt aufgelöst. Co-Authored-By: Claude Opus 4.7 --- index.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 661d0b7..03d327a 100644 --- a/index.html +++ b/index.html @@ -2686,8 +2686,12 @@ function getDisplayData(presenter) { const sub = state.substitutes[presenter.id]; let resolvedSub = null; if (sub && sub.name) { - // If substitute has no photo, try to find them as a chapter member + // Foto-Auflösung Vertretung: explizit → manueller Upload (extras) → Server-Sync (extras) → Mitglieder-Match let photoUrl = sub.photoUrl || ''; + if (!photoUrl) { + const subEx = loadExtras()[extrasKey(sub.name)] || {}; + photoUrl = subEx.photoB64 || subEx.offlinePhotoB64 || ''; + } if (!photoUrl) { const match = state.members.find(m => m.name.toLowerCase().trim() === sub.name.toLowerCase().trim()