From 73d5d67437911d938e300966e53d9fb576c03c7b Mon Sep 17 00:00:00 2001 From: dimden Date: Thu, 14 Sep 2023 14:55:40 +0300 Subject: [PATCH] fix user timeline not loading sometimes --- scripts/apis.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/apis.js b/scripts/apis.js index 4369663d..282b9343 100644 --- a/scripts/apis.js +++ b/scripts/apis.js @@ -176,7 +176,7 @@ function parseTweet(res) { tweet.entities = note.entities; tweet.display_text_range = undefined; // no text range for long tweets } - if(tweet.quoted_status_result) { + if(tweet.quoted_status_result && tweet.quoted_status_result.result) { let result = tweet.quoted_status_result.result; if(!result.core && result.tweet) result = result.tweet; if(result.limitedActionResults) { @@ -2505,7 +2505,7 @@ const API = { variables, "features": {"tweetypie_unmention_optimization_enabled":true,"responsive_web_edit_tweet_api_enabled":true,"graphql_is_translatable_rweb_tweet_is_translatable_enabled":true,"view_counts_everywhere_api_enabled":true,"longform_notetweets_consumption_enabled":true,"responsive_web_twitter_article_tweet_consumption_enabled":false,"tweet_awards_web_tipping_enabled":false,"longform_notetweets_rich_text_read_enabled":true,"longform_notetweets_inline_media_enabled":true,"responsive_web_graphql_exclude_directive_enabled":true,"verified_phone_label_enabled":false,"freedom_of_speech_not_reach_fetch_enabled":true,"standardized_nudges_misinfo":true,"tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":true,"responsive_web_media_download_video_enabled":false,"responsive_web_graphql_skip_user_profile_image_extensions_enabled":false,"responsive_web_graphql_timeline_navigation_enabled":true,"responsive_web_enhance_cards_enabled":false}, "fieldToggles":{"withArticleRichContentState":false,"withAuxiliaryUserLabels":false}, - "queryId": "tTsjMKyhajZvK4q76mpIBg" + "queryId": parsedTweet.weightedLength > 280 ? 'pokID4auGUSzBxijrqpIlw' : 'tTsjMKyhajZvK4q76mpIBg' }) }).then(i => i.json()).then(data => { debugLog('tweet.postV2', 'start', data);