feat: seo optimizations + opengraph embeds

fix: nullable AuthorUUIDs; assign admins member & mod role
This commit is contained in:
2026-01-06 16:26:47 -05:00
parent a7185d6a3d
commit 3bbd64631a
13 changed files with 288 additions and 14 deletions
@@ -2,7 +2,7 @@ import type { PageServerLoad } from './$types';
import { getServerToken } from '$lib/utils/auth';
import type { User } from '$lib/types/user';
export const load: PageServerLoad = async ({ params, fetch, cookies }) => {
export const load: PageServerLoad = async ({ params, fetch, cookies, url }) => {
const { username } = params;
const token = getServerToken(cookies);
const res = await fetch(`/api/user/${username}`, {
@@ -12,5 +12,5 @@ export const load: PageServerLoad = async ({ params, fetch, cookies }) => {
});
const user = (await res.json()) as User;
return { user };
return { user, url: url.href };
};