Skip to content

Commit

Permalink
Apply avatar moderation to quote post (#7229)
Browse files Browse the repository at this point in the history
  • Loading branch information
c960657 authored Dec 20, 2024
1 parent 3aa1a5f commit fa2072c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/view/com/post-thread/PostThreadItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,6 @@ let PostThreadItemLoaded = ({
timestamp={post.indexedAt}
postHref={postHref}
showAvatar={isThreadedChild}
avatarModeration={moderation.ui('avatar')}
avatarSize={24}
style={[a.pb_xs]}
/>
Expand Down
5 changes: 2 additions & 3 deletions src/view/com/util/PostMeta.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, {memo, useCallback} from 'react'
import {StyleProp, View, ViewStyle} from 'react-native'
import {AppBskyActorDefs, ModerationDecision, ModerationUI} from '@atproto/api'
import {AppBskyActorDefs, ModerationDecision} from '@atproto/api'
import {msg} from '@lingui/macro'
import {useLingui} from '@lingui/react'
import {useQueryClient} from '@tanstack/react-query'
Expand All @@ -26,7 +26,6 @@ interface PostMetaOpts {
postHref: string
timestamp: string
showAvatar?: boolean
avatarModeration?: ModerationUI
avatarSize?: number
onOpenAuthor?: () => void
style?: StyleProp<ViewStyle>
Expand Down Expand Up @@ -67,7 +66,7 @@ let PostMeta = (opts: PostMetaOpts): React.ReactNode => {
<PreviewableUserAvatar
size={opts.avatarSize || 16}
profile={opts.author}
moderation={opts.avatarModeration}
moderation={opts.moderation?.ui('avatar')}
type={opts.author.associated?.labeler ? 'labeler' : 'user'}
/>
</View>
Expand Down

0 comments on commit fa2072c

Please sign in to comment.