WIP 1.51.15: privacy and admin on v2

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ls1vMdg2GYqbnKZmPaX1ot
This commit is contained in:
2026-10-30 08:19:24 +02:00
co-authored by Claude Opus 5.5
parent 7b20ffbe08
commit 68c6559136
39 changed files with 10287 additions and 138 deletions
@@ -15,9 +15,9 @@ export async function getServerSettings(): Promise<SiteSettings> {
// would time out every page, so skip straight to the defaults.
if (!API_BASE) return {};
try {
const res = await fetch(`${API_BASE}/api/settings`, { next: { revalidate: 60 } });
const res = await fetch(`${API_BASE}/api/v2/settings`, { next: { revalidate: 60 } });
if (!res.ok) return {};
return await res.json();
return (await res.json())?.data || {};
} catch {
return {};
}