Fix missing avatar moderation in replies (#2325)

zio/stable
Paul Frazee 2023-12-27 08:53:39 -08:00 committed by GitHub
parent e1ba649560
commit b5d53ef0b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -539,6 +539,7 @@ let PostThreadItemLoaded = ({
timestamp={post.indexedAt} timestamp={post.indexedAt}
postHref={postHref} postHref={postHref}
showAvatar={isThreadedChild} showAvatar={isThreadedChild}
avatarModeration={moderation.avatar}
avatarSize={28} avatarSize={28}
displayNameType="md-bold" displayNameType="md-bold"
displayNameStyle={isThreadedChild && s.ml2} displayNameStyle={isThreadedChild && s.ml2}

View File

@ -11,6 +11,7 @@ import {sanitizeHandle} from 'lib/strings/handles'
import {isAndroid} from 'platform/detection' import {isAndroid} from 'platform/detection'
import {TimeElapsed} from './TimeElapsed' import {TimeElapsed} from './TimeElapsed'
import {makeProfileLink} from 'lib/routes/links' import {makeProfileLink} from 'lib/routes/links'
import {ModerationUI} from '@atproto/api'
interface PostMetaOpts { interface PostMetaOpts {
author: { author: {
@ -23,6 +24,7 @@ interface PostMetaOpts {
postHref: string postHref: string
timestamp: string timestamp: string
showAvatar?: boolean showAvatar?: boolean
avatarModeration?: ModerationUI
avatarSize?: number avatarSize?: number
displayNameType?: TypographyVariant displayNameType?: TypographyVariant
displayNameStyle?: StyleProp<TextStyle> displayNameStyle?: StyleProp<TextStyle>
@ -41,7 +43,7 @@ let PostMeta = (opts: PostMetaOpts): React.ReactNode => {
<UserAvatar <UserAvatar
avatar={opts.author.avatar} avatar={opts.author.avatar}
size={opts.avatarSize || 16} size={opts.avatarSize || 16}
// TODO moderation moderation={opts.avatarModeration}
/> />
</View> </View>
)} )}