Added secondary stash button, centralized bookmark (heart) component.
This commit is contained in:
@@ -5,6 +5,8 @@ import { fetchUser } from '#/src/users.js';
|
||||
export async function onBeforeRender(pageContext) {
|
||||
const profile = await fetchUser(pageContext.routeParams.username, {}, pageContext.user);
|
||||
|
||||
// console.log(profile);
|
||||
|
||||
if (!profile) {
|
||||
throw render(404, `Cannot find user '${pageContext.routeParams.username}'.`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user