Add some future-proofness

This commit is contained in:
Eric Bailey
2024-09-03 20:48:11 -05:00
parent f9dae01118
commit d8bd4ec5c4
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -366,7 +366,7 @@ let PostThreadItemLoaded = ({
<PostEmbeds <PostEmbeds
embed={post.embed} embed={post.embed}
moderation={moderation} moderation={moderation}
isHighlightedThreadItem contextView="thread-highlighted"
/> />
</View> </View>
)} )}
+3 -3
View File
@@ -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)}>