Skip to content

Commit

Permalink
Merge pull request #886 from shy1132/master
Browse files Browse the repository at this point in the history
fix tweets with proposed community notes not loading
  • Loading branch information
dimdenGD authored Jul 18, 2024
2 parents 23aff35 + 78b5f20 commit ee1dcb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/tweetviewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1533,7 +1533,7 @@ class TweetViewer {
});

// community notes
if(t.birdwatch && options.mainTweet && !vars.hideCommunityNotes) {
if(t.birdwatch && t.birdwatch.subtitle && options.mainTweet && !vars.hideCommunityNotes) {
let div = document.createElement('div');
div.classList.add('tweet-birdwatch', 'box');
let text = Array.from(escapeHTML(t.birdwatch.subtitle.text));
Expand Down

0 comments on commit ee1dcb4

Please sign in to comment.