This commit is contained in:
dangered wolf 2023-08-21 03:41:43 -04:00
parent 7c85ac86b0
commit d231ef6cc2
No known key found for this signature in database
GPG key ID: 41E4D37680ED8B58

View file

@ -159,11 +159,11 @@ export const twitterFetch = async (
continue; continue;
} }
// @ts-expect-error This is safe due to optional chaining
if ( if (
!wasElongatorDisabled && !wasElongatorDisabled &&
!useElongator && !useElongator &&
typeof TwitterProxy !== 'undefined' && typeof TwitterProxy !== 'undefined' &&
// @ts-expect-error This is safe due to optional chaining
(response as TweetResultsByRestIdResult)?.data?.tweetResult?.result?.reason === (response as TweetResultsByRestIdResult)?.data?.tweetResult?.result?.reason ===
'NsfwLoggedOut' 'NsfwLoggedOut'
) { ) {