When a site embeds a tweet like this:
we are working on an edit button
— Twitter (@Twitter) April one, 2022
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="https://twitter.com/Twitter/condition/1509951255388504066"> April ane, 2022</a> </blockquote> <script async src="https://platform.twitter.com/widgets.js" 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:
@BenWard what happens if yous embed a tweet and the user deletes information technology? does it show up every bit blank “linkrot” on your site, then?
— Ariel Waldman (@arielwaldman) Dec 8, 2011
@arielwaldman The embed code is a <blockquote> containing the Tweet content. If it’s deleted, or 1000 years in the future, the text remains.
— Ben (@benward) December 8, 2011
And the API documentation still says this:
However, Twitter has cleaved this API contract. Hither’south a tweet that I deleted:
In Soviet Russia, Twitter edits you.
— Kevin Marks (@kevinmarks) April six, 2022
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:
Here’s an old example post of mine. Notice how the 2 deleted tweets are blank, making nonsense of the narrative: https://t.co/6exFMCeS0Y
It start looked similar this, so showed deleted ones as HTML, at present it’s blobs. pic.twitter.com/eYw1hx5jYk
— Kevin Marks (@kevinmarks) March 29, 2022
The response was that this was “to amend respect when people have chosen to delete their Tweets”:
Hey Kevin! Nosotros’re doing this to meliorate respect when people have chosen to delete their Tweets. Very shortly it’ll accept ameliorate messaging that explains why the content is no longer bachelor 🙂 my DMs are open if you’d like to chat more than about this
— Eleanor Harding (@tweetanor) March 29, 2022
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:
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.
Yep! Unfortunately they use CORS so I had to proxy that check through a Cloudflare Worker. Here’s a proof of concept of a Tweet Saver script that only renders tweets that all the same exist. 404 ones will keep the blockquote. https://codepen.io/markjaquith/pen/gOovNPR?editors=1010
— Mark Jaquith (@markjaquith) April 7, 2022
— Mark Jaquith (@markjaquith) Apr 7, 2022
I spoke to Tech News Weekly about this: