Hide label appeal on self-labeled posts (#2232)
* Hide appeal for self-labeled post, update copy * Use correct logic
This commit is contained in:
parent
38e65fbe75
commit
47ff3e8e3f
3 changed files with 7 additions and 3 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue