Skip to content

Commit

Permalink
Fix: only show appeal CW item on moderated posts
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrazee committed Dec 26, 2023
1 parent cd7a25f commit 30d7599
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/view/com/post-thread/PostThreadItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,9 @@ let PostThreadItemLoaded = ({
return makeProfileLink(post.author, 'post', urip.rkey, 'reposted-by')
}, [post.uri, post.author])
const repostsTitle = 'Reposts of this post'
const isSelfLabeledPost =
const isModeratedPost =
moderation.decisions.post.cause?.type === 'label' &&
moderation.decisions.post.cause.label.src === currentAccount?.did
moderation.decisions.post.cause.label.src !== currentAccount?.did

const translatorUrl = getTranslatorLink(
record?.text || '',
Expand Down Expand Up @@ -335,7 +335,7 @@ let PostThreadItemLoaded = ({
postUri={post.uri}
record={record}
showAppealLabelItem={
post.author.did === currentAccount?.did && !isSelfLabeledPost
post.author.did === currentAccount?.did && isModeratedPost
}
style={{
paddingVertical: 6,
Expand Down

0 comments on commit 30d7599

Please sign in to comment.