kheina-com / Blue-Blocker

Blocks all Twitter Blue verified users on twitter.com
Mozilla Public License 2.0
326 stars 29 forks source link

Found Unexpected Tweet Shape #225

Closed dozercodes closed 5 months ago

dozercodes commented 7 months ago

When using Twitter search this error appears in the console Error Message:

[Blue Blocker] found unexpected tweet shape: 
Object { entryType: "TimelineTimelineItem", __typename: "TimelineTimelineItem", itemContent: {…}, feedbackInfo: {…}, clientEventInfo: {…} }
​
__typename: "TimelineTimelineItem"
​
clientEventInfo: Object { component: "result", element: "tweet", details: {…} }
​
entryType: "TimelineTimelineItem"
​
feedbackInfo: Object { feedbackKeys: (1) […] }
​
itemContent: Object { itemType: "TimelineTweet", __typename: "TimelineTweet", tweetDisplayType: "Tweet", … }
​
<prototype>: Object { … }
chunk-af3d2282.js:1:11800
    V moz-extension://f2897713-96d8-4f79-8791-c26327d459cc/assets/chunk-af3d2282.js:1
    we moz-extension://f2897713-96d8-4f79-8791-c26327d459cc/assets/chunk-af3d2282.js:1
    <anonymous> moz-extension://f2897713-96d8-4f79-8791-c26327d459cc/assets/chunk-af3d2282.js:1

Object:

{
  "entryType": "TimelineTimelineItem",
  "__typename": "TimelineTimelineItem",
  "itemContent": {
    "itemType": "TimelineTweet",
    "__typename": "TimelineTweet",
    "tweet_results": {
      "result": {
        "__typename": "Tweet",
        "rest_id": "1742938939936366956",
        "core": {
          "user_results": {
            "result": {
              "__typename": "User",
              "id": "VXNlcjoyMjE2NjEzNg==",
              "rest_id": "22166136",
              "affiliates_highlighted_label": {},
              "has_graduated_access": true,
              "is_blue_verified": false,
              "profile_image_shape": "Circle",
              "legacy": {
                "can_dm": false,
                "can_media_tag": true,
                "created_at": "Fri Feb 27 17:46:42 +0000 2009",
                "default_profile": false,
                "default_profile_image": false,
                "description": "A Closer Look writer/producer at Late Night with Seth Meyers (@latenightseth). find me on the other sites: salgentile on IG/Threads, https://t.co/UCeaChhKNp",
                "entities": {
                  "description": {
                    "urls": [
                      {
                        "display_url": "salgentile.bsky.social",
                        "expanded_url": "http://salgentile.bsky.social",
                        "url": "https://t.co/UCeaChhKNp",
                        "indices": [
                          133,
                          156
                        ]
                      }
                    ]
                  },
                  "url": {
                    "urls": [
                      {
                        "display_url": "salgentile.substack.com",
                        "expanded_url": "http://salgentile.substack.com",
                        "url": "https://t.co/ymx52glvgL",
                        "indices": [
                          0,
                          23
                        ]
                      }
                    ]
                  }
                },
                "fast_followers_count": 0,
                "favourites_count": 13078,
                "followers_count": 11267,
                "friends_count": 1207,
                "has_custom_timelines": true,
                "is_translator": false,
                "listed_count": 165,
                "location": "Brooklyn, NY",
                "media_count": 588,
                "name": "Sal Gentile",
                "normal_followers_count": 11267,
                "pinned_tweet_ids_str": [
                  "1709370686563573995"
                ],
                "possibly_sensitive": false,
                "profile_banner_url": "https://pbs.twimg.com/profile_banners/22166136/1682273383",
                "profile_image_url_https": "https://pbs.twimg.com/profile_images/1683651761356042240/eOaIvga0_normal.jpg",
                "profile_interstitial_type": "",
                "screen_name": "salgentile",
                "statuses_count": 2865,
                "translator_type": "none",
                "url": "https://t.co/ymx52glvgL",
                "verified": false,
                "want_retweets": false,
                "withheld_in_countries": []
              }
            }
          }
        },
        "unmention_data": {},
        "edit_control": {
          "edit_tweet_ids": [
            "1742938939936366956"
          ],
          "editable_until_msecs": "1704387600000",
          "is_edit_eligible": true,
          "edits_remaining": "5"
        },
        "is_translatable": false,
        "views": {
          "count": "47692",
          "state": "EnabledWithCount"
        },
        "source": "<a href=\"http://twitter.com/download/iphone\" rel=\"nofollow\">Twitter for iPhone</a>",
        "quoted_status_result": {},
        "legacy": {
          "bookmark_count": 19,
          "bookmarked": false,
          "created_at": "Thu Jan 04 16:00:00 +0000 2024",
          "conversation_id_str": "1742938939936366956",
          "display_text_range": [
            0,
            74
          ],
          "entities": {
            "hashtags": [],
            "symbols": [],
            "timestamps": [],
            "urls": [],
            "user_mentions": []
          },
          "favorite_count": 1418,
          "favorited": false,
          "full_text": "Good thing Trump isn’t related to Joe Biden or he’d be in a lot of trouble",
          "is_quote_status": true,
          "lang": "en",
          "quote_count": 1,
          "quoted_status_id_str": "1742937505635143985",
          "quoted_status_permalink": {
            "url": "https://t.co/Z7MbO27zOd",
            "expanded": "https://twitter.com/msnbc/status/1742937505635143985",
            "display": "twitter.com/msnbc/status/1…"
          },
          "reply_count": 14,
          "retweet_count": 264,
          "retweeted": false,
          "user_id_str": "22166136",
          "id_str": "1742938939936366956"
        }
      }
    },
    "tweetDisplayType": "Tweet",
    "highlights": {
      "textHighlights": [
        {
          "startIndex": 34,
          "endIndex": 43
        }
      ]
    }
  },
  "feedbackInfo": {
    "feedbackKeys": [
      "1060665035"
    ]
  },
  "clientEventInfo": {
    "component": "result",
    "element": "tweet",
    "details": {
      "timelinesDetails": {
        "controllerData": "DAACDAAFDAABDAABDAABCgABAAAAAAAAAAAAAAwAAgoAAQAAAAAAAAABCgACiPlnpgNCL0wLAAMAAAAJam9lIGJpZGVuCgAFS8ywwSzJo4wIAAYAAAABCgAHcX9GDZBdZqgAAAAAAA=="
      }
    }
  }
}
cooljeanius commented 7 months ago

I think this is probably a dup of #206, which should have been fixed by #215, but I guess maybe that hasn't made it into a release yet, since @rougetimelord is still working on #221 for now?

rougetimelord commented 6 months ago

I think this is probably a dup of #206, which should have been fixed by #215, but I guess maybe that hasn't made it into a release yet, since @rougetimelord is still working on #221 for now?

Poking @kheina to put #215 into the release ;) There is a pretty goofy problem with #215 though... I forgot to bump the version string which I did do in #221

cooljeanius commented 6 months ago

ok, so the 0.3.5 release has been released... re-check?

rougetimelord commented 5 months ago

Going to go ahead and assume the update fixed this, closing.