Skip to content

Commit

Permalink
fix user timeline not loading sometimes
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdenGD committed Sep 14, 2023
1 parent e865ad3 commit 73d5d67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/apis.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 73d5d67

Please sign in to comment.