Pass post to all PostAlerts
This commit is contained in:
@@ -321,7 +321,11 @@ export function QuoteEmbed({
|
||||
linkDisabled
|
||||
/>
|
||||
{moderation ? (
|
||||
<PostAlerts modui={moderation.ui('contentView')} style={[a.py_xs]} />
|
||||
<PostAlerts
|
||||
post={quote}
|
||||
modui={moderation.ui('contentView')}
|
||||
style={[a.py_xs]}
|
||||
/>
|
||||
) : null}
|
||||
{richText ? (
|
||||
<RichText
|
||||
|
||||
@@ -240,6 +240,7 @@ function MessageInputPostEmbed({
|
||||
</View>
|
||||
<ContentHider modui={moderation.ui('contentView')}>
|
||||
<PostAlerts
|
||||
post={post}
|
||||
modui={moderation.ui('contentView')}
|
||||
style={a.py_xs}
|
||||
size="sm"
|
||||
|
||||
@@ -310,6 +310,7 @@ const ThreadItemPostInner = memo(function ThreadItemPostInner({
|
||||
]}
|
||||
/>
|
||||
<PostAlerts
|
||||
post={post}
|
||||
modui={moderation.ui('contentList')}
|
||||
style={[a.pb_2xs]}
|
||||
additionalCauses={additionalPostAlerts}
|
||||
|
||||
@@ -340,6 +340,7 @@ const ThreadItemTreePostInner = memo(function ThreadItemTreePostInner({
|
||||
<ThreadItemTreeReplyChildReplyLine item={item} />
|
||||
<View style={[a.flex_1, a.pl_2xs]}>
|
||||
<PostAlerts
|
||||
post={post}
|
||||
modui={moderation.ui('contentList')}
|
||||
style={[a.pb_2xs]}
|
||||
additionalCauses={additionalPostAlerts}
|
||||
|
||||
@@ -219,6 +219,7 @@ function PostInner({
|
||||
style={styles.contentHider}
|
||||
childContainerStyle={styles.contentHiderChild}>
|
||||
<PostAlerts
|
||||
post={post}
|
||||
modui={moderation.ui('contentView')}
|
||||
style={[a.pb_xs]}
|
||||
/>
|
||||
|
||||
@@ -493,6 +493,7 @@ let PostContent = ({
|
||||
ignoreMute
|
||||
childContainerStyle={styles.contentHiderChild}>
|
||||
<PostAlerts
|
||||
post={post}
|
||||
modui={moderation.ui('contentList')}
|
||||
style={[a.pb_xs]}
|
||||
additionalCauses={additionalPostAlerts}
|
||||
|
||||
Reference in New Issue
Block a user