{storylineTitle}
++ {chapter?.title || `Chapter ${chapter?.plotIndex ?? 0}`} +
+Content unavailable
+ )} +diff --git a/src/app/story/[storylineId]/[plotIndex]/page.tsx b/src/app/story/[storylineId]/[plotIndex]/page.tsx
index 2b206f07..2749d0b5 100644
--- a/src/app/story/[storylineId]/[plotIndex]/page.tsx
+++ b/src/app/story/[storylineId]/[plotIndex]/page.tsx
@@ -8,6 +8,7 @@ import { WriterIdentity } from "../../../../components/WriterIdentity";
import { ViewTracker } from "../../../../components/ViewCount";
import { CommentSection } from "../../../../components/CommentSection";
import { StoryContent } from "../../../../components/StoryContent";
+import { ReadingModeWrapper } from "../../../../components/ReadingModeWrapper";
import Link from "next/link";
type Params = Promise<{ storylineId: string; plotIndex: string }>;
@@ -73,7 +74,7 @@ export default async function PlotDetailPage({ params }: { params: Params }) {
const [{ data: storyline }, { data: plot }, { data: plotRows }] = await Promise.all([
supabase.from("storylines").select("*").eq("storyline_id", sid).eq("hidden", false).eq("contract_address", STORY_FACTORY.toLowerCase()).single(),
supabase.from("plots").select("*").eq("storyline_id", sid).eq("plot_index", pidx).eq("hidden", false).eq("contract_address", STORY_FACTORY.toLowerCase()).single(),
- supabase.from("plots").select("plot_index").eq("storyline_id", sid).eq("hidden", false).eq("contract_address", STORY_FACTORY.toLowerCase()).order("plot_index", { ascending: true }),
+ supabase.from("plots").select("plot_index, title, content").eq("storyline_id", sid).eq("hidden", false).eq("contract_address", STORY_FACTORY.toLowerCase()).order("plot_index", { ascending: true }),
]);
if (!storyline) return
{storylineTitle}
++ {chapter?.title || `Chapter ${chapter?.plotIndex ?? 0}`} +
+Content unavailable
+ )} +