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}
style={[a.pb_xs]}
/>
<LabelsOnMyPost post={post} style={[a.pb_xs]} />
<PostAlerts
modui={moderation.ui('contentList')}
style={[a.pb_2xs]}
additionalCauses={additionalPostAlerts}
/>
{item.ui.isAnchor && (
<>
<LabelsOnMyPost post={post} style={[a.pb_xs]} />
<PostAlerts
modui={moderation.ui('contentList')}
style={[a.pb_2xs]}
additionalCauses={additionalPostAlerts}
/>
</>
)}
{richText?.text ? (
<>
<RichText
@@ -334,12 +334,16 @@ const ThreadItemTreePostInner = memo(function ThreadItemTreePostInner({
<View style={[a.flex_row]}>
<ThreadItemTreeReplyChildReplyLine item={item} />
<View style={[a.flex_1, a.pl_2xs]}>
<LabelsOnMyPost post={post} style={[a.pb_2xs]} />
<PostAlerts
modui={moderation.ui('contentList')}
style={[a.pb_2xs]}
additionalCauses={additionalPostAlerts}
/>
{item.ui.isAnchor && (
<>
<LabelsOnMyPost post={post} style={[a.pb_2xs]} />
<PostAlerts
modui={moderation.ui('contentList')}
style={[a.pb_2xs]}
additionalCauses={additionalPostAlerts}
/>
</>
)}
{richText?.text ? (
<>
<RichText