diff --git a/src/components/post-desktop/post-desktop.tsx b/src/components/post-desktop/post-desktop.tsx
index 7103673c..56071367 100644
--- a/src/components/post-desktop/post-desktop.tsx
+++ b/src/components/post-desktop/post-desktop.tsx
@@ -217,8 +217,9 @@ const PostMedia = ({ post }: PostProps) => {
};
const PostMessage = ({ post }: PostProps) => {
- const { cid, content, commentAuthor, deleted, edit, original, parentCid, postCid, reason, removed, spoiler, state, subplebbitAddress } = post || {};
- const banned = !!commentAuthor?.banExpiresAt;
+ const { cid, content, deleted, edit, original, parentCid, postCid, reason, removed, spoiler, state, subplebbitAddress } = post || {};
+ // TODO: commentAuthor is not available outside of editedComment, update when available
+ // const banned = !!post?.commentAuthor?.banExpiresAt;
const { t } = useTranslation();
const params = useParams();
const location = useLocation();
@@ -275,7 +276,8 @@ const PostMessage = ({ post }: PostProps) => {
)}
>
)}
- {banned && (
+ {/* TODO: commentAuthor is not available outside of editedComment, update when available */}
+ {/* {banned && (
@@ -288,7 +290,7 @@ const PostMessage = ({ post }: PostProps) => {
})}${reason ? `. ${_.capitalize(t('reason'))}: "${reason}"` : ''}`}
/>
- )}
+ )} */}
{!isReply && content.length > 1000 && !isInPostView && (
diff --git a/src/components/post-mobile/post-mobile.tsx b/src/components/post-mobile/post-mobile.tsx
index cb0e227d..c7618ac9 100644
--- a/src/components/post-mobile/post-mobile.tsx
+++ b/src/components/post-mobile/post-mobile.tsx
@@ -153,7 +153,8 @@ const ReplyBacklinks = ({ post }: PostProps) => {
const PostMessageMobile = ({ post }: PostProps) => {
const { t } = useTranslation();
const { cid, commentAuthor, content, deleted, edit, original, parentCid, postCid, reason, removed, spoiler, state, subplebbitAddress } = post || {};
- const banned = !!commentAuthor?.banExpiresAt;
+ // TODO: commentAuthor is not available outside of editedComment, update when available
+ // const banned = !!post?.commentAuthor?.banExpiresAt;
const [showOriginal, setShowOriginal] = useState(false);
const params = useParams();
@@ -211,7 +212,8 @@ const PostMessageMobile = ({ post }: PostProps) => {
)}
>
)}
- {banned && (
+ {/* TODO: commentAuthor is not available outside of editedComment, update when available */}
+ {/* {banned && (
@@ -224,7 +226,7 @@ const PostMessageMobile = ({ post }: PostProps) => {
})}${reason ? `. ${_.capitalize(t('reason'))}: "${reason}"` : ''}`}
/>
- )}
+ )} */}
{!isReply && content.length > 1000 && !isInPostView && (