[Bug] App icon (logo.png) does not follow the Branding nav-icon #773
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Admin Branding settings let an admin upload a custom nav-icon (
logo-small.png), login-logo, and favicon (favicon.png) intocustom/public/assets/img/. But the app icon —logo.png— has no settings control, so it stays the shipped default even after the instance is otherwise fully branded.logo.pngis used as:routers/web/misc/misc.goSiteManifest), andtemplates/base/head_navbar.tmplonerror).So a branded instance still shows the default MokoGitea mark as its installable app icon.
Expected
When the admin uploads the nav-icon, the app icon (
logo.png) should default to the same image; resetting the nav-icon should also revert the app icon.Fix
routers/web/admin/branding.go: on nav-icon upload, also writelogo.png; on nav-icon reset, also removelogo.png./kind bug