From fa2072cefa0379fd1ea36ad109b8d24721838958 Mon Sep 17 00:00:00 2001 From: Christian Schmidt Date: Sat, 21 Dec 2024 00:15:45 +0100 Subject: [PATCH] Apply avatar moderation to quote post (#7229) --- src/view/com/post-thread/PostThreadItem.tsx | 1 - src/view/com/util/PostMeta.tsx | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx index 035f7a681b..f04b9e225a 100644 --- a/src/view/com/post-thread/PostThreadItem.tsx +++ b/src/view/com/post-thread/PostThreadItem.tsx @@ -567,7 +567,6 @@ let PostThreadItemLoaded = ({ timestamp={post.indexedAt} postHref={postHref} showAvatar={isThreadedChild} - avatarModeration={moderation.ui('avatar')} avatarSize={24} style={[a.pb_xs]} /> diff --git a/src/view/com/util/PostMeta.tsx b/src/view/com/util/PostMeta.tsx index 5384f6827e..30180b889a 100644 --- a/src/view/com/util/PostMeta.tsx +++ b/src/view/com/util/PostMeta.tsx @@ -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' @@ -26,7 +26,6 @@ interface PostMetaOpts { postHref: string timestamp: string showAvatar?: boolean - avatarModeration?: ModerationUI avatarSize?: number onOpenAuthor?: () => void style?: StyleProp @@ -67,7 +66,7 @@ let PostMeta = (opts: PostMetaOpts): React.ReactNode => {