social-app
social-app copied to clipboard
"Appeal content warning" is always displayed in post drop down menu on my posts
Describe the bug
To Reproduce
Steps to reproduce the behavior:
- Display one of my posts (posts posted by myself)
- Select ellipsis and display "drop down menu"
- "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
}
. .
Yep yep thanks for the issue, good sleuthing too