Add some future-proofness
This commit is contained in:
@@ -366,7 +366,7 @@ let PostThreadItemLoaded = ({
|
|||||||
<PostEmbeds
|
<PostEmbeds
|
||||||
embed={post.embed}
|
embed={post.embed}
|
||||||
moderation={moderation}
|
moderation={moderation}
|
||||||
isHighlightedThreadItem
|
contextView="thread-highlighted"
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -50,14 +50,14 @@ export function PostEmbeds({
|
|||||||
onOpen,
|
onOpen,
|
||||||
style,
|
style,
|
||||||
allowNestedQuotes,
|
allowNestedQuotes,
|
||||||
isHighlightedThreadItem,
|
contextView,
|
||||||
}: {
|
}: {
|
||||||
embed?: Embed
|
embed?: Embed
|
||||||
moderation?: ModerationDecision
|
moderation?: ModerationDecision
|
||||||
onOpen?: () => void
|
onOpen?: () => void
|
||||||
style?: StyleProp<ViewStyle>
|
style?: StyleProp<ViewStyle>
|
||||||
allowNestedQuotes?: boolean
|
allowNestedQuotes?: boolean
|
||||||
isHighlightedThreadItem?: boolean
|
contextView?: 'thread-highlighted'
|
||||||
}) {
|
}) {
|
||||||
const {openLightbox} = useLightboxControls()
|
const {openLightbox} = useLightboxControls()
|
||||||
const largeAltBadge = useLargeAltBadgeEnabled()
|
const largeAltBadge = useLargeAltBadgeEnabled()
|
||||||
@@ -131,7 +131,7 @@ export function PostEmbeds({
|
|||||||
<ContentHider modui={moderation?.ui('contentMedia')}>
|
<ContentHider modui={moderation?.ui('contentMedia')}>
|
||||||
<View style={[styles.container, style]}>
|
<View style={[styles.container, style]}>
|
||||||
<AutoSizedImage
|
<AutoSizedImage
|
||||||
disableCrop={isHighlightedThreadItem}
|
disableCrop={contextView === 'thread-highlighted'}
|
||||||
image={image}
|
image={image}
|
||||||
onPress={() => _openLightbox(0)}
|
onPress={() => _openLightbox(0)}
|
||||||
onPressIn={() => onPressIn(0)}>
|
onPressIn={() => onPressIn(0)}>
|
||||||
|
|||||||
Reference in New Issue
Block a user