From 5c4431d54e5ff26c6f248a3da6a286c73bb7e005 Mon Sep 17 00:00:00 2001
From: Jared Pereira
Date: Fri, 27 Jun 2025 17:33:12 -0400
Subject: [PATCH] add edit link to post metadata
---
app/lish/[did]/[publication]/[rkey]/page.tsx | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/app/lish/[did]/[publication]/[rkey]/page.tsx b/app/lish/[did]/[publication]/[rkey]/page.tsx
index e0f59cfe..ab7b66f4 100644
--- a/app/lish/[did]/[publication]/[rkey]/page.tsx
+++ b/app/lish/[did]/[publication]/[rkey]/page.tsx
@@ -132,6 +132,20 @@ export default async function Post(props: {
>
) : null}
+ {identity &&
+ identity.atp_did ===
+ document.documents_in_publications[0]?.publications
+ .identity_did && (
+ <>
+ {" "}
+ |
+
+ Edit Post
+
+ >
+ )}
@@ -142,7 +156,7 @@ export default async function Post(props: {
- edit post
+ Edit Post
) : (