feat(characters): add catalog boundary and capabilities
This commit is contained in:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user