Twitter Tweet Embeds Deleted Tweets Empty Iframe Broken

With all the fuss about Twitter’s promised edit button, and how they might design it, nosotros’re missing a disturbing evolution — Twitter is using its embedded javascript to edit other people‘south sites.

When a site embeds a tweet like this:

the lawmaking looks similar this:

<blockquote grade="twitter-tweet"> <p lang="en" dir="ltr">we are working on an edit button</p> — Twitter (@Twitter)  <a href=""> April ane, 2022</a> </blockquote>  <script async src="" charset="utf-8"> </script>

script looks for blockquotes with the
on, and replaces them with a Twitter-branded iframe to confirm that it is a existent tweet (and to encourage y’all to click through to Twitter).

Without the script it would look like this:

we are working on an edit button

— Twitter (@Twitter) April 1, 2022

Until recently, if the tweet or account had been deleted, and so Twitter would leave the blockquote solitary, so the embedded text would withal testify, but without Twitter’due south validation.

This was by design, then that the human activity of quoting would still work. As Ben Ward, who wrote the original code said:

And the API documentation still says this:

Popular:   Max Payne 1 2 Remakes Remedy Rockstar Take Two

However, Twitter has cleaved this API contract. Hither’south a tweet that I deleted:

Detect that it doesn’t show as a blockquote fallback, merely equally an empty white blob. Twitter is not confirming the tweet, but information technology is erasing my citation of information technology.


Twitter has now reverted the change.
“[W]eastward’re rolling back this modify for at present while we explore dissimilar options” Twitter spokesperson Remi Duhé said
according to Emma Roth of The Verge.

Earlier this, the tweet above looked like this:

Twitter has used its javascript to edit my webpage text. When I pointed this out to Twitter Engineering science:

The response was that this was “to amend respect when people have chosen to delete their Tweets”:

This is tampering with the public record. Any news commodity that cited a tweet from the onetime president, like this vox one, will now have an incoherent hole in information technology:

Popular:   Android Google Photos Screen Saver How To

Rather than the cited text:

I don’t think Twitter should edit other people’s webpages to remove tweets that have subsequently been deleted. Exercise you?


Mark Jaquith has a protection script that runs before Twitter’southward, checks for deleted or hidden tweets and removes the
from the blockquotes and so they don’t get stomped.

I spoke to Tech News Weekly about this:

Twitter Tweet Embeds Deleted Tweets Empty Iframe Broken