From 8a4b479129d769ace6ac596fcb4028812d4cf041 Mon Sep 17 00:00:00 2001 From: Jonathan Miller <1+jmiller@noreply.git.mokoconsulting.tech> Date: Wed, 15 Jul 2026 02:51:01 +0000 Subject: [PATCH] fix(org): point profile/wiki repo lookup at renamed .mokogit repos The org .mokogitea/.mokogitea-private repos were renamed to .mokogit/ .mokogit-private, but the constants still pointed at the old names, so the org profile + wiki lookup returned nil (empty wiki). Update the 4 RepoName* constants to match. Interim rebrand step. --- routers/web/shared/user/header.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/routers/web/shared/user/header.go b/routers/web/shared/user/header.go index 9b75cbc724..1e9efb187b 100644 --- a/routers/web/shared/user/header.go +++ b/routers/web/shared/user/header.go @@ -145,14 +145,14 @@ type PrepareOwnerHeaderResult struct { } const ( - RepoNameProfile = ".mokogitea" - RepoNameProfilePrivate = ".mokogitea-private" - RepoNameWikiPublic = ".mokogitea" - RepoNameWikiPrivate = ".mokogitea-private" + RepoNameProfile = ".mokogit" + RepoNameProfilePrivate = ".mokogit-private" + RepoNameWikiPublic = ".mokogit" + RepoNameWikiPrivate = ".mokogit-private" ) // profileFallbacks maps primary repo names to their fallback alternatives. -// Priority: .mokogitea > .profile > .github +// Priority: .mokogit > .profile > .github var profileFallbacks = map[string][]string{ RepoNameProfile: {".profile", ".github"}, RepoNameProfilePrivate: {".profile-private", ".github-private"}, @@ -237,7 +237,7 @@ func loadHeaderCount(ctx *context.Context) error { } // OrgWikiRepoExists checks whether a profile repo's wiki exists and has content. -// Tries fallback repo names (.mokogitea, .github) if the primary doesn't exist. +// Tries fallback repo names (.mokogit, .github) if the primary doesn't exist. func OrgWikiRepoExists(ctx *context.Context, ownerID int64, repoName string) bool { namesToTry := ProfileRepoFallbacks(repoName)