Remove WhoCanReply from thread children

This commit is contained in:
Eric Bailey
2024-08-12 10:46:46 -05:00
parent 372a235dd7
commit 949e271a72
@@ -685,6 +685,7 @@ function ExpandedPostDetails({
const pal = usePalette('default') const pal = usePalette('default')
const {_} = useLingui() const {_} = useLingui()
const openLink = useOpenLink() const openLink = useOpenLink()
const isRootPost = !('reply' in post.record)
const onTranslatePress = React.useCallback(() => { const onTranslatePress = React.useCallback(() => {
openLink(translatorUrl) openLink(translatorUrl)
@@ -701,6 +702,7 @@ function ExpandedPostDetails({
s.mb10, s.mb10,
]}> ]}>
<Text style={[a.text_sm, pal.textLight]}>{niceDate(post.indexedAt)}</Text> <Text style={[a.text_sm, pal.textLight]}>{niceDate(post.indexedAt)}</Text>
{isRootPost && (
<WhoCanReply <WhoCanReply
post={post} post={post}
postgate={ postgate={
@@ -712,6 +714,7 @@ function ExpandedPostDetails({
} }
isThreadAuthor={isThreadAuthor} isThreadAuthor={isThreadAuthor}
/> />
)}
{needsTranslation && ( {needsTranslation && (
<> <>
<Text style={[a.text_sm, pal.textLight]}>&middot;</Text> <Text style={[a.text_sm, pal.textLight]}>&middot;</Text>