diff --git a/web-next/app/[locale]/forum/create/[forumId]/page.tsx b/web-next/app/[locale]/forum/create/[forumId]/page.tsx index 4bb483b..59842cd 100644 --- a/web-next/app/[locale]/forum/create/[forumId]/page.tsx +++ b/web-next/app/[locale]/forum/create/[forumId]/page.tsx @@ -1,10 +1,11 @@ import { notFound, redirect } from 'next/navigation' import { getTranslations, setRequestLocale } from 'next-intl/server' -import { getForum, getForumPath } from '@/lib/forum' +import { getForum, getForumPath, getAccountCharactersForForum, getForumCharacterPick } from '@/lib/forum' import { getSession } from '@/lib/session' import { PageShell } from '@/components/PageShell' import { ForumBreadcrumb } from '@/components/ForumBreadcrumb' import { CreateTopicForm } from '@/components/CreateTopicForm' +import { ForumCharacterPicker } from '@/components/ForumCharacterPicker' export const dynamic = 'force-dynamic' @@ -24,6 +25,10 @@ export default async function CreateTopicPage({ const session = await getSession() if (!session.username) redirect(`/${locale}/forum/${id}`) + const [forumChars, forumPick] = session.accountId + ? await Promise.all([getAccountCharactersForForum(session.accountId), getForumCharacterPick(session.accountId)]) + : [[], null] + const path = await getForumPath(id, locale) return ( @@ -44,6 +49,19 @@ export default async function CreateTopicPage({ {forum.description &&

{forum.description}

} +