From aaf106ef55ad857116ad890ee0fb2778a774ebc0 Mon Sep 17 00:00:00 2001 From: adevopg Date: Fri, 17 Jul 2026 08:17:15 +0000 Subject: [PATCH] =?UTF-8?q?Foro:=20selector=20de=20personaje=20tambi=C3=A9?= =?UTF-8?q?n=20al=20crear=20tema?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 --- .../[locale]/forum/create/[forumId]/page.tsx | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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}

} +