Changeset 7e9d0ea in Klonkt for src/services/ensurePrimarySite.js
- Timestamp:
- 08/11/2026 07:18:51 PM (4 weeks ago)
- Branches:
- main
- Children:
- bac4bf3
- Parents:
- 960f015
- git-author:
- Robin <roboburr@…> (08/11/2026 07:12:33 PM)
- git-committer:
- Robin <roboburr@…> (08/11/2026 07:18:51 PM)
- File:
-
- 1 edited
-
src/services/ensurePrimarySite.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/services/ensurePrimarySite.js
r960f015 r7e9d0ea 3 3 4 4 // A Klonkt instance should ALWAYS have a primary site — it carries the identity 5 // (title, theme, profile) and is the anchor point in solo/hub/circle mode.5 // (title, theme, profile) and is the anchor point for the whole instance. 6 6 // The register flow already creates one, but an admin created via a script 7 7 // (or an empty sites table for any reason) left the instance without a site: … … 10 10 // This helper runs at boot (and is idempotent): as soon as there is an admin 11 11 // but no site yet, it creates a default site owned by the first god/admin. 12 // Tenancy-agnostic — applies to solo, hub, and circle.13 12 14 13 function defaultTitle() {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)