diff --git a/src/helpers/graphql.ts b/src/helpers/graphql.ts index 0f19409..e11097e 100644 --- a/src/helpers/graphql.ts +++ b/src/helpers/graphql.ts @@ -16,7 +16,7 @@ export const isGraphQLTweet = (response: unknown): response is GraphQLTweet => { return ( typeof response === 'object' && response !== null && - '__typename' in response && - (response.__typename === 'Tweet' || response.__typename === 'TweetWithVisibilityResults') + // @ts-expect-error it's 6 am please let me sleep + ('__typename' in response && (response.__typename === 'Tweet' || response.__typename === 'TweetWithVisibilityResults') || ('legacy' in response && response.legacy?.full_text)) ); };