Fixed profile page breaking when logged out.

This commit is contained in:
2026-07-26 03:15:50 +02:00
parent 760025f414
commit e50dedca66
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ async function fetchRevisions(pageContext) {
export async function onBeforeRender(pageContext) {
const [profile, alerts, userRevisions, keys] = await Promise.all([
fetchUser(pageContext.routeParams.username, {}, pageContext.user),
fetchUser(pageContext.routeParams.username, { throwError: false }, pageContext.user),
pageContext.routeParams.section === 'alerts' && pageContext.routeParams.username === pageContext.user?.username
? fetchAlerts(pageContext.user)
: [],