diff --git a/src/components/posts/view-post/PostPreview.tsx b/src/components/posts/view-post/PostPreview.tsx index 91e71b2e4..c888da929 100644 --- a/src/components/posts/view-post/PostPreview.tsx +++ b/src/components/posts/view-post/PostPreview.tsx @@ -26,6 +26,11 @@ export type PreviewProps = BarePreviewProps & { showPinnedIcon?: boolean } +// grill admin account and grill memes admin +const HIDE_PREVIEW_FROM_ACCOUNT = [ + '3rPYmfYVHG7NtuGDivDNZdMMRHgrwtVuswY9TWUaHQCU8tAo', + '3oGjkULuNKRqi513BbohWiSgA2oKMrbSnPrcddpXYC4mtW1G', +] export function PostPreview(props: PreviewProps) { const { postDetails, space: externalSpace, showPinnedIcon } = props const { @@ -35,8 +40,9 @@ export function PostPreview(props: PreviewProps) { const { isSharedPost } = post const space = externalSpace || globalSpace const isUnlisted = useIsUnlistedPost({ post, space: space?.struct }) + const isHiddenPreview = HIDE_PREVIEW_FROM_ACCOUNT.includes(post.ownerId) - if (isUnlisted) return null + if (isUnlisted || isHiddenPreview) return null const postContent = postDetails.post.content const isEmptyContent = !isSharedPost && !postContent?.title && !postContent?.body