From cadc46d2dc50120424ed460943775c58efc59c4d Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 11 Feb 2025 10:56:23 -0600 Subject: [PATCH] Revert "Handle follow case" This reverts commit bc454dad896fe577bec91f3d65d971ad9e0fec8d. --- src/view/com/util/post-ctrls/PostCtrls.tsx | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/view/com/util/post-ctrls/PostCtrls.tsx b/src/view/com/util/post-ctrls/PostCtrls.tsx index b61bad2ca9..f73cede352 100644 --- a/src/view/com/util/post-ctrls/PostCtrls.tsx +++ b/src/view/com/util/post-ctrls/PostCtrls.tsx @@ -26,7 +26,6 @@ import {makeProfileLink} from '#/lib/routes/links' import {shareUrl} from '#/lib/sharing' import {useGate} from '#/lib/statsig/statsig' import {toShareUrl} from '#/lib/strings/url-helpers' -import {useProfileShadow} from '#/state/cache/profile-shadow' import {Shadow} from '#/state/cache/types' import {useFeedFeedbackContext} from '#/state/feed-feedback' import { @@ -95,15 +94,6 @@ let PostCtrls = ({ post.author.viewer?.blockingByList, ) - const shadowedAuthor = useProfileShadow(post.author) - const followersCanReply = !!threadgateRecord?.allow?.find( - rule => rule.$type === 'app.bsky.feed.threadgate#followerRule', - ) - const canOverrideReplyDisabled = - followersCanReply && - shadowedAuthor.viewer?.following?.startsWith('at://did') - const replyDisabled = post.viewer?.replyDisabled && !canOverrideReplyDisabled - const shouldShowLoggedOutWarning = React.useMemo(() => { return ( post.author.did !== currentAccount?.did && @@ -257,13 +247,13 @@ let PostCtrls = ({ { - if (!replyDisabled) { + if (!post.viewer?.replyDisabled) { playHaptic('Light') requireAuth(() => onPressReply()) }