Revert "Fix undefined block (#4471)" (#4472)

This reverts commit 7cac413f3b.
This commit is contained in:
Eric Bailey 2024-06-10 20:49:28 -05:00 committed by GitHub
parent 7cac413f3b
commit 848151c4f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 22 deletions

View file

@ -196,12 +196,6 @@ let FeedItemInner = ({
},
]
const isParentBlocked = Boolean(
parentAuthor?.viewer?.blockedBy ||
parentAuthor?.viewer?.blocking ||
parentAuthor?.viewer?.blockingByList,
)
return (
<Link
testID={`feedItem-by-${post.author.handle}`}
@ -326,16 +320,7 @@ let FeedItemInner = ({
onOpenAuthor={onOpenAuthor}
/>
{!isThreadChild && showReplyTo && parentAuthor && (
<ReplyToLabel
profile={
isParentBlocked
? {
...parentAuthor,
displayName: _(msg`a blocked user`),
}
: parentAuthor
}
/>
<ReplyToLabel profile={parentAuthor} />
)}
<LabelsOnMyPost post={post} />
<PostContent