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

Feature Request: Automatic embeds for x.com links #40180

Open
Jaccuse opened this issue Nov 14, 2024 · 4 comments
Open

Feature Request: Automatic embeds for x.com links #40180

Jaccuse opened this issue Nov 14, 2024 · 4 comments
Labels
[Feature] Comments [Feature] Shortcodes / Embeds [mu wpcom Feature] Verbum Comments Verbum, a better comment experience, app developed in the mu-wpcom plugin [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Status] Auto-allocated [Type] Feature Request

Comments

@Jaccuse
Copy link

Jaccuse commented Nov 14, 2024

Impacted plugin

Jetpack

What

Automatically embed x.com links

How

Currently, pasting an x.com link into a comment form gets you something like this:
Image

Some users are still using the Highlander comment editor (as opposed to Verbum) and would prefer x.com links to automatically embed, like this:
Image

@Jaccuse Jaccuse added [Feature] Comments [mu wpcom Feature] Verbum Comments Verbum, a better comment experience, app developed in the mu-wpcom plugin [Type] Feature Request labels Nov 14, 2024
@github-actions github-actions bot added the [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ label Nov 14, 2024
@jeherve
Copy link
Member

jeherve commented Nov 14, 2024

@Automattic/vertex Do you think that's something we should implement in Verbum comments, or within the existing Twitter shortcode embed logic?
https://github.com/Automattic/jetpack/blob/3eeff5b7ea42234b79e617730dc07f075c256764/projects/plugins/jetpack/modules/shortcodes/tweet.php

For example, we handle Vimeo embeds in comments from the Vimeo shortcode:

add_filter( 'comment_text', 'vimeo_link', 1 );

Related: #10682

@heavyweight
Copy link
Contributor

Maybe a good start is to fix it with the embeds.
Posting this as comment:
https://twitter.com/goodside/status/1598129631609380864
Will embed it for simple sites. I would expect the same to happen for x.com links.

If I'm not mistaken these don't work on atomic sites ATM. So the next pass would be to fix them there.

@jeherve
Copy link
Member

jeherve commented Nov 14, 2024

f I'm not mistaken these don't work on atomic sites ATM. So the next pass would be to fix them there.

That's correct. The embeds get turned into shortcodes that are displayed in comments via this mu-plugin:

fbhepr%2Skers%2Sjcpbz%2Sjc%2Qpbagrag%2Szh%2Qcyhtvaf%2Sfubegpbqrf.cuc%3Se%3Q6412r3s9-og

We wouldn't be able to bring the entire mu-plugin to Jetpack just in one go, but maybe we should look at bringing the added functionality (embed to shortcode and hooking into comment_text) to the existing shortcode?

@jeherve
Copy link
Member

jeherve commented Nov 14, 2024

Maybe a good start is to fix it with the embeds.
Posting this as comment:
https://twitter.com/goodside/status/1598129631609380864
Will embed it for simple sites. I would expect the same to happen for x.com links.

We would indeed have to update the embed to support the new domain. Although it is worth noting that the new domain isn't quite stable just yet. Related conversation:

https://core.trac.wordpress.org/ticket/59142

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Comments [Feature] Shortcodes / Embeds [mu wpcom Feature] Verbum Comments Verbum, a better comment experience, app developed in the mu-wpcom plugin [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Status] Auto-allocated [Type] Feature Request
Projects
Development

No branches or pull requests

4 participants