From edeb38fcead03571b0bcf8b5e1306d1640ea3106 Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Thu, 2 Nov 2023 04:55:47 -0400 Subject: [PATCH] Don't include global_screen_name in API yet --- src/api/user.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/api/user.ts b/src/api/user.ts index dadc83c..cf3aab7 100644 --- a/src/api/user.ts +++ b/src/api/user.ts @@ -89,6 +89,9 @@ export const userAPI = async ( const response: UserAPIResponse = { code: 200, message: 'OK' } as UserAPIResponse; const apiUser: APIUser = (await populateUserProperties(userResponse)) as APIUser; + /* Currently, we haven't rolled this out as it's part of the proto-v2 API */ + delete apiUser.global_screen_name; + /* Finally, staple the User to the response and return it */ response.user = apiUser;