diff --git a/pkg/interface/src/views/landscape/components/Home/Post/PostItem/PostHeader.js b/pkg/interface/src/views/landscape/components/Home/Post/PostItem/PostHeader.js
index 3374bee2f..de86666d7 100644
--- a/pkg/interface/src/views/landscape/components/Home/Post/PostItem/PostHeader.js
+++ b/pkg/interface/src/views/landscape/components/Home/Post/PostItem/PostHeader.js
@@ -5,6 +5,7 @@ import { useCopy } from '~/logic/lib/useCopy';
import { getPermalinkForGraph } from '~/logic/lib/permalinks';
import { Dropdown } from '~/views/components/Dropdown';
import useContactState from '~/logic/state/contact';
+import { resourceFromPath } from '~/logic/lib/group';
export function PostHeader(props) {
@@ -13,7 +14,8 @@ export function PostHeader(props) {
api,
association,
isReply,
- showTimestamp
+ showTimestamp,
+ graphPath
} = props;
const contacts = useContactState(state => state.contacts);
const mb = isReply ? "2" : "3";
@@ -24,6 +26,11 @@ export function PostHeader(props) {
post.index
) : '';
const { copyDisplay, doCopy } = useCopy(permalink, 'Copy Link');
+ const resource = resourceFromPath(graphPath);
+
+ const doDelete = () => {
+ api.graph.removePosts(resource.ship, resource.name, [post.index]);
+ };
return (
-
-
- {copyDisplay}
-
-
+ borderColor="lightGray"
+ p={1}>
+
+ {copyDisplay}
+
+
+ Delete
+
}>
diff --git a/pkg/interface/src/views/landscape/components/Home/Post/PostItem/PostItem.js b/pkg/interface/src/views/landscape/components/Home/Post/PostItem/PostItem.js
index 2958fd303..e0e0ec840 100644
--- a/pkg/interface/src/views/landscape/components/Home/Post/PostItem/PostItem.js
+++ b/pkg/interface/src/views/landscape/components/Home/Post/PostItem/PostItem.js
@@ -88,6 +88,7 @@ class PostItem extends React.Component {
const { inReplyMode } = this.state;
const canComment = this.canWrite();
+ const postExists = !!node.post && typeof node.post !== 'string';
return (
-
- { (isReply || (parentPost && index.length > 1 && isParent)) ? (
-
- Replying to
-
-
- ) : null }
-
-
+ { (postExists) ? (
+ <>
+
+ { (isReply || (parentPost && index.length > 1 && isParent)) ? (
+
+ Replying to
+
+
+ ) : null }
+
+
+ >
+ ) : (
+
+ This post has been deleted
+
+ ) }
{ inReplyMode ? (