diff options
Diffstat (limited to 'src/view')
-rw-r--r-- | src/view/com/post-thread/PostThreadItem.tsx | 5 | ||||
-rw-r--r-- | src/view/com/util/moderation/LabelInfo.tsx | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx index 8d1211707..e6adfc85b 100644 --- a/src/view/com/post-thread/PostThreadItem.tsx +++ b/src/view/com/post-thread/PostThreadItem.tsx @@ -187,6 +187,9 @@ let PostThreadItemLoaded = ({ return makeProfileLink(post.author, 'post', urip.rkey, 'reposted-by') }, [post.uri, post.author]) const repostsTitle = 'Reposts of this post' + const isSelfLabeledPost = + moderation.decisions.post.cause?.type === 'label' && + moderation.decisions.post.cause.label.src === currentAccount?.did const translatorUrl = getTranslatorLink( record?.text || '', @@ -351,7 +354,7 @@ let PostThreadItemLoaded = ({ includeMute style={styles.alert} /> - {post.author.did === currentAccount?.did ? ( + {post.author.did === currentAccount?.did && !isSelfLabeledPost ? ( <LabelInfo details={{uri: post.uri, cid: post.cid}} labels={post.labels} diff --git a/src/view/com/util/moderation/LabelInfo.tsx b/src/view/com/util/moderation/LabelInfo.tsx index 8fe3765c2..970338752 100644 --- a/src/view/com/util/moderation/LabelInfo.tsx +++ b/src/view/com/util/moderation/LabelInfo.tsx @@ -43,7 +43,8 @@ export function LabelInfo({ ]}> <Text type="sm" style={pal.text}> <Trans> - This {'did' in details ? 'account' : 'post'} has been labeled. + A content warning has been applied to this{' '} + {'did' in details ? 'account' : 'post'}. </Trans>{' '} </Text> <Pressable |