diff --git a/jest/test-pds.ts b/jest/test-pds.ts index 25faddfa..d86ebd78 100644 --- a/jest/test-pds.ts +++ b/jest/test-pds.ts @@ -78,7 +78,7 @@ export async function createServer( }) const pic = fs.readFileSync( - path.join(__dirname, '..', 'assets', 'default-avatar.jpg'), + path.join(__dirname, '..', 'assets', 'default-avatar.png'), ) return { diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx index 8d121170..e6adfc85 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 ? ( - This {'did' in details ? 'account' : 'post'} has been labeled. + A content warning has been applied to this{' '} + {'did' in details ? 'account' : 'post'}. {' '}