+
+ {entity_set.permissions.write && (
+
+ {pub?.publications &&
+ identity?.atp_did &&
+ pub.publications.identity_did === identity.atp_did ? (
+ <>
+
+
+
+
+
+
+ >
+ ) : (
+ <>
+
+
+
+
+
+ >
+ )}
+
)}
-
- )}
-
);
diff --git a/app/lish/[did]/[publication]/[rkey]/PostContent.tsx b/app/lish/[did]/[publication]/[rkey]/PostContent.tsx
index 1801882a..f8468faf 100644
--- a/app/lish/[did]/[publication]/[rkey]/PostContent.tsx
+++ b/app/lish/[did]/[publication]/[rkey]/PostContent.tsx
@@ -25,7 +25,7 @@ import { StaticMathBlock } from "./StaticMathBlock";
import { PubCodeBlock } from "./PubCodeBlock";
import { AppBskyFeedDefs } from "@atproto/api";
import { PubBlueskyPostBlock } from "./PublishBskyPostBlock";
-import { openPage, usePostPageUIState } from "./PostPage";
+import { openPage } from "./PostPages";
export function PostContent({
blocks,
@@ -47,7 +47,7 @@ export function PostContent({
return (
{blocks.map((b, index) => {
return (
diff --git a/app/lish/[did]/[publication]/[rkey]/PostHeader/PostHeader.tsx b/app/lish/[did]/[publication]/[rkey]/PostHeader/PostHeader.tsx
index c728922a..909ed971 100644
--- a/app/lish/[did]/[publication]/[rkey]/PostHeader/PostHeader.tsx
+++ b/app/lish/[did]/[publication]/[rkey]/PostHeader/PostHeader.tsx
@@ -25,80 +25,72 @@ export function PostHeader(props: {
if (!document?.data || !document.documents_in_publications[0].publications)
return;
return (
- <>
- {/* */}
-