Added visibility toggle to stash tile. Collapsed stash page directory structure.

This commit is contained in:
2024-03-26 03:00:50 +01:00
parent f6b50cc732
commit ce4b9e7d40
15 changed files with 127 additions and 30 deletions

View File

@@ -3,7 +3,7 @@ import { render } from 'vike/abort'; /* eslint-disable-line import/extensions */
import { fetchUser } from '#/src/users.js';
export async function onBeforeRender(pageContext) {
const profile = await fetchUser(pageContext.routeParams.username);
const profile = await fetchUser(pageContext.routeParams.username, {}, pageContext.user);
if (!profile) {
throw render(404, `Cannot find user '${pageContext.routeParams.username}'.`);