From 01d3a69a0491d9d48456cd478ec9d68eab683557 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Tue, 1 Dec 2026 11:33:37 +0100 Subject: [PATCH] explorer: Fetch only the tip commit header for repo cards Repo cards fetched their tip commit from `/commits/:sha` only to show when it was made. That endpoint diffs the commit and inlines its blobs, so every repo listing made httpd diff the tip commit of each repo on the page. Take the commit from `/commits?parent=:sha&perPage=1` instead, which returns only the commit header. --- explorer/src/components/RepoCard.svelte | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/explorer/src/components/RepoCard.svelte b/explorer/src/components/RepoCard.svelte index 80bb3f21b..00bc3ca24 100644 --- a/explorer/src/components/RepoCard.svelte +++ b/explorer/src/components/RepoCard.svelte @@ -30,6 +30,11 @@ $: baseUrl = repoInfo.baseUrl; $: isPrivate = repo.visibility.type === "private"; $: tip = defaultBranchTip(repo); + $: tipCommit = tip + ? api.repo + .getAllCommits(repo.rid, { parent: tip, perPage: 1 }) + .then(commits => commits[0]) + : undefined;