From 88650706e01336c04ebb91812218a45dea48795c Mon Sep 17 00:00:00 2001 From: dean Date: Tue, 25 Nov 2025 10:47:55 -0800 Subject: [PATCH] fix: Restore isFollowedByCurrentUser in UserSocialsFields fragment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Accidentally reverted to old followers array approach when creating challenges branch. This restores the fix from PR #1474 that uses isFollowedByCurrentUser field directly for proper follow state display. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/index.tsx | 97 ++++++---------------------------------- src/operations/feed.gql | 6 +-- src/operations/video.gql | 6 +-- 3 files changed, 16 insertions(+), 93 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 94fb98c..2e1d24d 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -3973,12 +3973,7 @@ export type GetFeedQuery = { id: number; username: string; profileImageUri?: string | null; - followers?: Array<{ - __typename?: "UserGQL"; - id: number; - username: string; - profileImageUri?: string | null; - }> | null; + isFollowedByCurrentUser?: boolean | null; }; }>; comments: Array<{ @@ -3990,12 +3985,7 @@ export type GetFeedQuery = { id: number; username: string; profileImageUri?: string | null; - followers?: Array<{ - __typename?: "UserGQL"; - id: number; - username: string; - profileImageUri?: string | null; - }> | null; + isFollowedByCurrentUser?: boolean | null; }; replies: Array<{ __typename?: "CommentGQL"; @@ -4006,12 +3996,7 @@ export type GetFeedQuery = { id: number; username: string; profileImageUri?: string | null; - followers?: Array<{ - __typename?: "UserGQL"; - id: number; - username: string; - profileImageUri?: string | null; - }> | null; + isFollowedByCurrentUser?: boolean | null; }; }>; }>; @@ -4029,12 +4014,7 @@ export type UserSocialsFieldsFragment = { id: number; username: string; profileImageUri?: string | null; - followers?: Array<{ - __typename?: "UserGQL"; - id: number; - username: string; - profileImageUri?: string | null; - }> | null; + isFollowedByCurrentUser?: boolean | null; }; export type VideoCardFieldsFragment = { @@ -4091,12 +4071,7 @@ export type VideoCardFieldsFragment = { id: number; username: string; profileImageUri?: string | null; - followers?: Array<{ - __typename?: "UserGQL"; - id: number; - username: string; - profileImageUri?: string | null; - }> | null; + isFollowedByCurrentUser?: boolean | null; }; }>; comments: Array<{ @@ -4108,12 +4083,7 @@ export type VideoCardFieldsFragment = { id: number; username: string; profileImageUri?: string | null; - followers?: Array<{ - __typename?: "UserGQL"; - id: number; - username: string; - profileImageUri?: string | null; - }> | null; + isFollowedByCurrentUser?: boolean | null; }; replies: Array<{ __typename?: "CommentGQL"; @@ -4124,12 +4094,7 @@ export type VideoCardFieldsFragment = { id: number; username: string; profileImageUri?: string | null; - followers?: Array<{ - __typename?: "UserGQL"; - id: number; - username: string; - profileImageUri?: string | null; - }> | null; + isFollowedByCurrentUser?: boolean | null; }; }>; }>; @@ -4206,12 +4171,7 @@ export type GetVideoFeedQuery = { id: number; username: string; profileImageUri?: string | null; - followers?: Array<{ - __typename?: "UserGQL"; - id: number; - username: string; - profileImageUri?: string | null; - }> | null; + isFollowedByCurrentUser?: boolean | null; }; }>; comments: Array<{ @@ -4223,12 +4183,7 @@ export type GetVideoFeedQuery = { id: number; username: string; profileImageUri?: string | null; - followers?: Array<{ - __typename?: "UserGQL"; - id: number; - username: string; - profileImageUri?: string | null; - }> | null; + isFollowedByCurrentUser?: boolean | null; }; replies: Array<{ __typename?: "CommentGQL"; @@ -4239,12 +4194,7 @@ export type GetVideoFeedQuery = { id: number; username: string; profileImageUri?: string | null; - followers?: Array<{ - __typename?: "UserGQL"; - id: number; - username: string; - profileImageUri?: string | null; - }> | null; + isFollowedByCurrentUser?: boolean | null; }; }>; }>; @@ -5726,12 +5676,7 @@ export type GetVideoSocialDetailsByIdQuery = { id: number; username: string; profileImageUri?: string | null; - followers?: Array<{ - __typename?: "UserGQL"; - id: number; - username: string; - profileImageUri?: string | null; - }> | null; + isFollowedByCurrentUser?: boolean | null; }; }>; comments: Array<{ @@ -5743,12 +5688,7 @@ export type GetVideoSocialDetailsByIdQuery = { id: number; username: string; profileImageUri?: string | null; - followers?: Array<{ - __typename?: "UserGQL"; - id: number; - username: string; - profileImageUri?: string | null; - }> | null; + isFollowedByCurrentUser?: boolean | null; }; replies: Array<{ __typename?: "CommentGQL"; @@ -5759,12 +5699,7 @@ export type GetVideoSocialDetailsByIdQuery = { id: number; username: string; profileImageUri?: string | null; - followers?: Array<{ - __typename?: "UserGQL"; - id: number; - username: string; - profileImageUri?: string | null; - }> | null; + isFollowedByCurrentUser?: boolean | null; }; }>; }>; @@ -6352,11 +6287,7 @@ export const UserSocialsFieldsFragmentDoc = gql` id username profileImageUri - followers { - id - username - profileImageUri - } + isFollowedByCurrentUser } `; export const VideoCardFieldsFragmentDoc = gql` diff --git a/src/operations/feed.gql b/src/operations/feed.gql index 06dc64d..e0f271f 100644 --- a/src/operations/feed.gql +++ b/src/operations/feed.gql @@ -19,11 +19,7 @@ fragment UserSocialsFields on UserGQL { id username profileImageUri - followers { - id - username - profileImageUri - } + isFollowedByCurrentUser } fragment VideoCardFields on VideoGQL { diff --git a/src/operations/video.gql b/src/operations/video.gql index 44e878f..1ab115e 100644 --- a/src/operations/video.gql +++ b/src/operations/video.gql @@ -88,11 +88,7 @@ fragment UserSocialsFields on UserGQL { id username profileImageUri - followers { - id - username - profileImageUri - } + isFollowedByCurrentUser } query GetVideoSocialDetailsById($videoId: Int!) {