fix: respect instancePrivate when determining single-user mode in Base.astro
This commit is contained in:
@@ -31,7 +31,7 @@ try {
|
||||
instancePrivate = root?.instance?.private === true;
|
||||
const shards: Array<{ handle?: string }> = root?.shards ?? [];
|
||||
const handles = shards.map(s => s.handle).filter(Boolean);
|
||||
if (handles.length === 1) singleHandle = handles[0] as string;
|
||||
if (handles.length === 1 && !instancePrivate) singleHandle = handles[0] as string;
|
||||
}
|
||||
} catch { /* non-fatal */ }
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user