From 780d2bd8f0e47f6e03155a65c8d5447cdbc13929 Mon Sep 17 00:00:00 2001 From: Z8MB1E Date: Wed, 30 Sep 2026 18:41:13 -0400 Subject: [PATCH] feat(wiki): show System as author for seeded documentation pages Seeded Documentation pages have no lastEditor; the index cards and the detail header now read 'System' instead of 'Unknown editor' for those. Other categories keep the old fallback. --- src/app/(frontend)/wiki/[slug]/page.tsx | 22 +++++++++++++++++++--- src/app/(frontend)/wiki/page.tsx | 8 +++++++- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/src/app/(frontend)/wiki/[slug]/page.tsx b/src/app/(frontend)/wiki/[slug]/page.tsx index fe89013..ce89d8b 100644 --- a/src/app/(frontend)/wiki/[slug]/page.tsx +++ b/src/app/(frontend)/wiki/[slug]/page.tsx @@ -181,7 +181,11 @@ export default async function WikiDetailPage({
- +
); @@ -218,7 +222,15 @@ export default async function WikiDetailPage({
- Last edited by {relationName(page.lastEditor)} + {/* Seeded Documentation pages are written by the system, not a user. */} + + Last edited by{" "} + {page.lastEditor != null + ? relationName(page.lastEditor) + : page.category === "Documentation" + ? "System" + : "Unknown editor"} +
@@ -227,7 +239,11 @@ export default async function WikiDetailPage({ {lockdown && }
- +