fix: Restore isFollowedByCurrentUser in UserSocialsFields fragment
All checks were successful
Tests / Tests (pull_request) Successful in 10s
All checks were successful
Tests / Tests (pull_request) Successful in 10s
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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`
|
||||
|
||||
@@ -19,11 +19,7 @@ fragment UserSocialsFields on UserGQL {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
followers {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
}
|
||||
isFollowedByCurrentUser
|
||||
}
|
||||
|
||||
fragment VideoCardFields on VideoGQL {
|
||||
|
||||
@@ -88,11 +88,7 @@ fragment UserSocialsFields on UserGQL {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
followers {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
}
|
||||
isFollowedByCurrentUser
|
||||
}
|
||||
|
||||
query GetVideoSocialDetailsById($videoId: Int!) {
|
||||
|
||||
Reference in New Issue
Block a user