From 57270eebcb84554bef5c194e9601ad7e1887e8cd Mon Sep 17 00:00:00 2001 From: Ilker Manap Date: Fri, 9 Oct 2026 23:04:52 +0200 Subject: [PATCH] The pictures page shows a batch in the order it was made Co-Authored-By: Claude Opus 5.5 (1M context) --- internal/web/templates/images.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/web/templates/images.html b/internal/web/templates/images.html index 62fb3f3..7eed0fe 100644 --- a/internal/web/templates/images.html +++ b/internal/web/templates/images.html @@ -130,8 +130,10 @@ } }); + // Newest first, and a batch in its own order: the last of it is + // prepended first. function show(items, seed, body) { - items.forEach((it, i) => { + items.map((it, i) => [it, i]).reverse().forEach(([it, i]) => { const src = "data:image/png;base64," + it.b64_json; const fig = document.createElement("figure"); const img = document.createElement("img");