Hide labels on posts unless post is anchor

This commit is contained in:
Eric Bailey
2025-10-14 14:45:50 -05:00
parent 6a84088dba
commit df9c289f55
2 changed files with 20 additions and 12 deletions
@@ -294,12 +294,16 @@ const ThreadItemPostInner = memo(function ThreadItemPostInner({
postHref={postHref} postHref={postHref}
style={[a.pb_xs]} style={[a.pb_xs]}
/> />
<LabelsOnMyPost post={post} style={[a.pb_xs]} /> {item.ui.isAnchor && (
<PostAlerts <>
modui={moderation.ui('contentList')} <LabelsOnMyPost post={post} style={[a.pb_xs]} />
style={[a.pb_2xs]} <PostAlerts
additionalCauses={additionalPostAlerts} modui={moderation.ui('contentList')}
/> style={[a.pb_2xs]}
additionalCauses={additionalPostAlerts}
/>
</>
)}
{richText?.text ? ( {richText?.text ? (
<> <>
<RichText <RichText
@@ -334,12 +334,16 @@ const ThreadItemTreePostInner = memo(function ThreadItemTreePostInner({
<View style={[a.flex_row]}> <View style={[a.flex_row]}>
<ThreadItemTreeReplyChildReplyLine item={item} /> <ThreadItemTreeReplyChildReplyLine item={item} />
<View style={[a.flex_1, a.pl_2xs]}> <View style={[a.flex_1, a.pl_2xs]}>
<LabelsOnMyPost post={post} style={[a.pb_2xs]} /> {item.ui.isAnchor && (
<PostAlerts <>
modui={moderation.ui('contentList')} <LabelsOnMyPost post={post} style={[a.pb_2xs]} />
style={[a.pb_2xs]} <PostAlerts
additionalCauses={additionalPostAlerts} modui={moderation.ui('contentList')}
/> style={[a.pb_2xs]}
additionalCauses={additionalPostAlerts}
/>
</>
)}
{richText?.text ? ( {richText?.text ? (
<> <>
<RichText <RichText