Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embed for Tweets versus Blockquote (html/js) with Text? #10

Open
chrisaldrich opened this issue Jun 2, 2016 · 5 comments
Open

Embed for Tweets versus Blockquote (html/js) with Text? #10

chrisaldrich opened this issue Jun 2, 2016 · 5 comments

Comments

@chrisaldrich
Copy link
Contributor

I've noticed that the IndieWeb Press This bookmarklet uses something like [embed]https://twitter.com/ChrisAldrich/status/707313378268618752 [/embed] in the main body of the content rather than the Twitter html/js embed method
(a la: <blockquote class="twitter-tweet" data-lang="en"><p lang="en" dir="ltr"> etc... )

I suspect that WordPress is doing some processing on the back end with the [embed] short code to fetch and display the twitter card and thus isn't technically saving the actual content of the tweet the way the blockquote embed method does. In the event of a Twitter silo death, this could spell trouble for users losing the data.

Cross reference: http://techlifeweb.com/bookmarklets-for-indieweb-favorites-and-retweets/ and http://stream.boffosocko.com/2016/scott-i-love-the-concept-of-your-bookmarklets-and-how

@petermolnar
Copy link

You're right, that is a WordPress internal thing. There is a plugin to disable embeds at large: https://wordpress.org/plugins/disable-embeds/
This is probably not a good idea to have as a dependency, but it is a good source to see how it can be done.

Note: you can also add my solution of using the regular Press This to the cross-reference list: https://petermolnar.eu/press-this-indieweb/

@pfefferle
Copy link
Member

pfefferle commented Jun 2, 2016

@petermolnar I am not sure if the plugin is doing what @chrisaldrich needs. The plugin only disables the embeds (oEmbed) of WordPress posts, implemented in WordPress 4.4. It does not touch the whitelisted services like Twitter, Youtube, ...

@pfefferle
Copy link
Member

pfefferle commented Jun 2, 2016

@chrisaldrich WordPress is doing the embed automatically, so I think the short code stuff is correct. In the final/published output should be the correct code.

@pfefferle
Copy link
Member

@chrisaldrich WordPress uses the oEmbed API by Twitter to retrieve the correct code. You can look at the sourcecode of your tweet for the oEmbed links. Here is an example: https://publish.twitter.com/oembed?url=https://twitter.com/ChrisAldrich/status/707313378268618752

@chrisaldrich
Copy link
Contributor Author

Mostly I'm just thinking about this from the IndieWeb "Own Your Own Data" perspective, so if I'm reading this all correctly, the way the plugin is handling things, it's relying on Twitter's long term existence to serve up the physical content of the tweet?

I would suggest that using the blockquote method with the associated .js may be preferable for IndieWeb users as it saves the content of the tweet as a blockquote with the associated metadata. At worst, if Twitter disappeared, then one would at least "own" the text of the original which would minimally fallback to display as a simple blockquote rather than the fancier embedded Twitter card.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants