feat(characters): add catalog boundary and capabilities

This commit is contained in:
2026-07-17 19:11:09 +08:00
parent a30e9937b8
commit 2fc312b5c7
9 changed files with 235 additions and 31 deletions
@@ -13,7 +13,7 @@ export default async function CharacterChatLayout({
}) {
const { characterSlug } = await params;
const character = getCharacterBySlug(characterSlug);
if (!character) notFound();
if (!character?.capabilities.chat) notFound();
return (
<ChatRouteProviders characterId={character.id}>
@@ -13,7 +13,7 @@ export default async function CharacterPrivateRoomLayout({
}) {
const { characterSlug } = await params;
const character = getCharacterBySlug(characterSlug);
if (!character) notFound();
if (!character?.capabilities.privateRoom) notFound();
return (
<PrivateRoomRouteProvider characterId={character.id}>
@@ -13,7 +13,7 @@ export default async function CharacterTipLayout({
}) {
const { characterSlug } = await params;
const character = getCharacterBySlug(characterSlug);
if (!character) notFound();
if (!character?.capabilities.tip) notFound();
return (
<PaymentRouteProvider scopeKey={character.id}>