a tool for shared writing and social publishing

fix pub layout metadata types

+6 -3
+6 -3
app/lish/[did]/[publication]/layout.tsx
··· 9 9 return <>{props.children}</>; 10 10 } 11 11 12 - export async function generateMetadata(params: { 13 - did: string; 14 - publication: string; 12 + export async function generateMetadata(props: { 13 + params: Promise<{ 14 + did: string; 15 + publication: string; 16 + }>; 15 17 }): Promise<Metadata> { 18 + let params = await props.params; 16 19 if (!params.did || !params.publication) return { title: "Publication 404" }; 17 20 let { result: publication } = await get_publication_data.handler( 18 21 {