Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

moderate avatars and embeds in composer reply to (#2665)

* moderate avatars and embeds in composer reply to

* oops

* dont need moderation in the quote opts

authored by

Hailey and committed by
GitHub
59aacf41 28455f49

+18 -6
+6 -1
src/state/shell/composer.tsx
··· 1 1 import React from 'react' 2 - import {AppBskyEmbedRecord, AppBskyRichtextFacet} from '@atproto/api' 2 + import { 3 + AppBskyEmbedRecord, 4 + AppBskyRichtextFacet, 5 + PostModeration, 6 + } from '@atproto/api' 3 7 import {useNonReactiveCallback} from '#/lib/hooks/useNonReactiveCallback' 4 8 5 9 export interface ComposerOptsPostRef { ··· 12 16 avatar?: string 13 17 } 14 18 embed?: AppBskyEmbedRecord.ViewRecord['embed'] 19 + moderation?: PostModeration 15 20 } 16 21 export interface ComposerOptsQuote { 17 22 uri: string
+6 -2
src/view/com/composer/ComposerReplyTo.tsx
··· 83 83 accessibilityHint={_( 84 84 msg`Expand or collapse the full post you are replying to`, 85 85 )}> 86 - <UserAvatar avatar={replyTo.author.avatar} size={50} /> 86 + <UserAvatar 87 + avatar={replyTo.author.avatar} 88 + size={50} 89 + moderation={replyTo.moderation?.avatar} 90 + /> 87 91 <View style={styles.replyToPost}> 88 92 <Text type="xl-medium" style={[pal.text]}> 89 93 {sanitizeDisplayName( ··· 99 103 {replyTo.text} 100 104 </Text> 101 105 </View> 102 - {images && ( 106 + {images && !replyTo.moderation?.embed.blur && ( 103 107 <ComposerReplyToImages images={images} showFull={showFull} /> 104 108 )} 105 109 </View>
+2 -1
src/view/com/post-thread/PostThreadItem.tsx
··· 217 217 avatar: post.author.avatar, 218 218 }, 219 219 embed: post.embed, 220 + moderation, 220 221 }, 221 222 onPost: onPostReply, 222 223 }) 223 - }, [openComposer, post, record, onPostReply]) 224 + }, [openComposer, post, record, onPostReply, moderation]) 224 225 225 226 const onPressShowMore = React.useCallback(() => { 226 227 setLimitLines(false)
+2 -1
src/view/com/post/Post.tsx
··· 122 122 avatar: post.author.avatar, 123 123 }, 124 124 embed: post.embed, 125 + moderation, 125 126 }, 126 127 }) 127 - }, [openComposer, post, record]) 128 + }, [openComposer, post, record, moderation]) 128 129 129 130 const onPressShowMore = React.useCallback(() => { 130 131 setLimitLines(false)
+2 -1
src/view/com/posts/FeedItem.tsx
··· 135 135 avatar: post.author.avatar, 136 136 }, 137 137 embed: post.embed, 138 + moderation, 138 139 }, 139 140 }) 140 - }, [post, record, openComposer]) 141 + }, [post, record, openComposer, moderation]) 141 142 142 143 const outerStyles = [ 143 144 styles.outer,