a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add description to pub posts metadata

+7 -1
+1
app/lish/[did]/[publication]/[rkey]/page.tsx
··· 40 40 record.title + 41 41 " - " + 42 42 decodeURIComponent((await props.params).publication), 43 + description: record?.description || "", 43 44 }; 44 45 } 45 46 export default async function Post(props: {
+6 -1
app/lish/[did]/[publication]/page.tsx
··· 29 29 { supabase: supabaseServerClient }, 30 30 ); 31 31 if (!publication) return { title: "404 Publication" }; 32 - return { title: decodeURIComponent(params.publication) }; 32 + 33 + let record = publication.record as PubLeafletPublication.Record | null; 34 + return { 35 + title: decodeURIComponent(params.publication), 36 + description: record?.description || "", 37 + }; 33 38 } 34 39 35 40 export default async function Publication(props: {