tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
28
pulls
pipelines
make link to published post work
awarm.space
10 months ago
75ddaccf
aafcf521
+5
-1
1 changed file
expand all
collapse all
unified
split
components
Pages
PublicationMetadata.tsx
+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
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
80
-
<Link className="text-sm" href="/">
81
81
+
<Link
82
82
+
className="text-sm"
83
83
+
href={`/lish/${identity?.resolved_did?.alsoKnownAs?.[0].slice(5)}/${pub.publications.name}/${new AtUri(pub.doc).rkey}`}
84
84
+
>
81
85
View Post
82
86
</Link>
83
87
</div>