diff options
author | Eric Bailey <git@esb.lol> | 2025-02-18 17:25:59 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-18 17:25:59 -0600 |
commit | f23a621c7ec935d8587ff7b50072e392fe8c820c (patch) | |
tree | 417ff03178ef52d93f1c127c3c342709c9c3982e | |
parent | da45c42b6f1ebf0646b3327c9a4a39cd46ecb8d6 (diff) | |
download | voidsky-f23a621c7ec935d8587ff7b50072e392fe8c820c.tar.zst |
Remove shadowed follow gate handling (#7774)
-rw-r--r-- | src/view/com/util/post-ctrls/PostCtrls.tsx | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/view/com/util/post-ctrls/PostCtrls.tsx b/src/view/com/util/post-ctrls/PostCtrls.tsx index 9515b770c..9a077d6f2 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 { @@ -94,15 +93,7 @@ let PostCtrls = ({ post.author.viewer?.blockedBy || 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 replyDisabled = post.viewer?.replyDisabled const shouldShowLoggedOutWarning = React.useMemo(() => { return ( |