social-app icon indicating copy to clipboard operation
social-app copied to clipboard

"Appeal content warning" is always displayed in post drop down menu on my posts

Open tkusano opened this issue 1 year ago • 1 comments

Describe the bug

To Reproduce

Steps to reproduce the behavior:

  1. Display one of my posts (posts posted by myself)
  2. Select ellipsis and display "drop down menu"
  3. "Appeal content warning" item appears even if the post is not labeled.

Details

  • Platform: web, iOS (may be on Android)
  • App version: 1.60

Additional context

In src/view/com/post-thread/PostThreadItem.tsx, !isSelfLabeledPost is always true when moderation.decisions.post.cause?.type !== 'label', I think.

So, when a post is not labeled,

<PostDropdownBtn

    showAppealLabelItem={
                post.author.did === currentAccount?.did && !isSelfLabeledPost
   }

becomes

<PostDropdownBtn

    showAppealLabelItem={
                post.author.did === currentAccount?.did && true
   }

. .

tkusano avatar Dec 23 '23 16:12 tkusano

Yep yep thanks for the issue, good sleuthing too

pfrazee avatar Dec 23 '23 20:12 pfrazee