From 949e271a72c805e687c6a52341d8048a735849f7 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Mon, 12 Aug 2024 10:46:46 -0500 Subject: [PATCH] Remove WhoCanReply from thread children --- src/view/com/post-thread/PostThreadItem.tsx | 25 ++++++++++++--------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx index 9cae8a3c77..e2e550f71f 100644 --- a/src/view/com/post-thread/PostThreadItem.tsx +++ b/src/view/com/post-thread/PostThreadItem.tsx @@ -685,6 +685,7 @@ function ExpandedPostDetails({ const pal = usePalette('default') const {_} = useLingui() const openLink = useOpenLink() + const isRootPost = !('reply' in post.record) const onTranslatePress = React.useCallback(() => { openLink(translatorUrl) @@ -701,17 +702,19 @@ function ExpandedPostDetails({ s.mb10, ]}> {niceDate(post.indexedAt)} - + {isRootPost && ( + + )} {needsTranslation && ( <> ·