From 47ff3e8e3f84138ce207b2d2209f358e4cc1f74a Mon Sep 17 00:00:00 2001
From: Eric Bailey <git@esb.lol>
Date: Mon, 18 Dec 2023 11:16:33 -0600
Subject: Hide label appeal on self-labeled posts (#2232)

* Hide appeal for self-labeled post, update copy

* Use correct logic
---
 src/view/com/post-thread/PostThreadItem.tsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'src/view/com/post-thread/PostThreadItem.tsx')

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}
-- 
cgit 1.4.1

