Hide labels on posts unless post is anchor
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user