From 82ff8546d40ed43bebe513220510e08609590277 Mon Sep 17 00:00:00 2001 From: Loewy Date: Thu, 19 Dec 2024 16:31:46 -0800 Subject: [PATCH 1/2] add profile image for followers --- src/index.tsx | 4 ++++ src/operations/user.gql | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index ae0cd9d..5094779 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -3803,11 +3803,13 @@ export type GetUserFollowingFollowersQuery = { __typename?: "UserGQL"; id: number; username: string; + profileImageUri?: string | null; }> | null; followers?: Array<{ __typename?: "UserGQL"; id: number; username: string; + profileImageUri?: string | null; }> | null; } | null; }; @@ -6713,10 +6715,12 @@ export const GetUserFollowingFollowersDocument = gql` following { id username + profileImageUri } followers { id username + profileImageUri } } } diff --git a/src/operations/user.gql b/src/operations/user.gql index 71489ec..85993a4 100644 --- a/src/operations/user.gql +++ b/src/operations/user.gql @@ -117,10 +117,12 @@ query getUserFollowingFollowers { following { id username + profileImageUri } followers { id username + profileImageUri } } } From eb15f4f3b8e0edea50ff9ea551477beeb1e69c4f Mon Sep 17 00:00:00 2001 From: Loewy Date: Thu, 19 Dec 2024 16:33:48 -0800 Subject: [PATCH 2/2] add profile image to user relationship --- src/index.tsx | 8 +++++++- src/operations/user.gql | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index 5094779..2595bb7 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -3732,7 +3732,12 @@ export type GetUserRelationshipsMatchingQuery = { __typename?: "UserRelationship"; toUserFollows: boolean; toUserIsFollowedBy: boolean; - toUser: { __typename?: "UserGQL"; username: string; id: number }; + toUser: { + __typename?: "UserGQL"; + username: string; + profileImageUri?: string | null; + id: number; + }; }>; }; }; @@ -6442,6 +6447,7 @@ export const GetUserRelationshipsMatchingDocument = gql` relationships { toUser { username + profileImageUri id } toUserFollows diff --git a/src/operations/user.gql b/src/operations/user.gql index 85993a4..8c02d88 100644 --- a/src/operations/user.gql +++ b/src/operations/user.gql @@ -66,6 +66,7 @@ query getUserRelationshipsMatching( relationships { toUser { username + profileImageUri id } toUserFollows