From fabb7d2ed8f158d12de2a65102668ce543d7cba8 Mon Sep 17 00:00:00 2001 From: gator Date: Thu, 17 Sep 2026 12:44:52 +0000 Subject: [PATCH] Load the watch-through numbers alongside the cuts The views table already records how far every viewer of a share page got. Once each published cut has its own page, "which version holds people" is a query, and this is where the answer is shown. --- trailer.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/trailer.html b/trailer.html index c669d3c..d6902b4 100644 --- a/trailer.html +++ b/trailer.html @@ -254,6 +254,11 @@ if (!r.ok) { pane.innerHTML = '

' + esc(r.error || "") + '

'; return; } PKG = r.draft.package || {}; NOTES = r.draft.notes || {}; + STATS = {}; + if ((PKG.cuts || []).some(function (c) { return c.project_id; })) { + var cs = await api("cut_stats", { draft_id: id }); + ((cs && cs.cuts) || []).forEach(function (x) { STATS[x.cut_id] = x; }); + } pane.innerHTML = paneHtml(meta, r.draft); }