a tool for shared writing and social publishing

make link to published post work

+5 -1
+5 -1
components/Pages/PublicationMetadata.tsx
··· 8 8 import { useIdentityData } from "components/IdentityProvider"; 9 9 import { AutosizeTextarea } from "components/utils/AutosizeTextarea"; 10 10 import { Separator } from "components/Layout"; 11 + import { AtUri } from "@atproto/syntax"; 11 12 export const PublicationMetadata = ({ 12 13 cardBorderHidden, 13 14 }: { ··· 77 78 <div className="flex flex-row items-center gap-2 pt-3"> 78 79 <p className="text-sm text-tertiary">Published XX/XX/XXX</p> 79 80 <Separator classname="h-4" /> 80 - <Link className="text-sm" href="/"> 81 + <Link 82 + className="text-sm" 83 + href={`/lish/${identity?.resolved_did?.alsoKnownAs?.[0].slice(5)}/${pub.publications.name}/${new AtUri(pub.doc).rkey}`} 84 + > 81 85 View Post 82 86 </Link> 83 87 </div>