So an interesting change is coming to Mastodon embeds.
So an interesting change is coming to Mastodon embeds.
So an interesting change is coming to Mastodon embeds.
Previously, the embed code consisted of an iframe, going forward, this is being switched to a blockquote.
In either case, the original text of the post is not included and is rather added after the main page the embed is on is loaded.
https://github.com/mastodon/mastodon/pull/31766
#mastodon #embeds #fediverse
You're viewing a single thread.
Okay, looking at the new embed code more closely, this is...something else.
1 0 ReplyFor comparison, the previous (and on most Mastodon servers, the current) version looked like this.
1 0 Reply@[email protected] it seems presumptive to my old webdev mind to assume all places that allow embeds will allow external js.
Also, seriously, do you expect me to backdoor my own site??
1 0 Reply
@[email protected] what will happen with previously embedded posts? They'll contain the "old code" with an iframe.
1 0 Reply@[email protected] Any existing embeds will continue to work, including from mastodon.social.
Basically, the plugin will check for the server and post ID from the iframe, and then fetches the status.
Updating the plugin to work with blockquotes should be fairly straightforward, I just need to find the time.
Will keep you posted!
1 0 Reply@[email protected] It's for the next release I think, 4.3 or so...
Yeah, wouldn't like to redo all my embeds... Yes I have many ;-)1 0 Reply@[email protected] Yeah, you definitely won't have to do that, the issue is more with wanting to embed posts from any servers running this version of Mastodon.
You will only get the blockquote HTML code, while the plugin looks for iframes, so it just won't do anything.
1 0 Reply@[email protected] Alright, I just went ahead and made the necessary update, it didn't require too much effort.
Let me know once you update the plugin!
1 0 Reply@[email protected] Old embeds still work ;-)
1 0 Reply@[email protected] Great! Did you also try the new embed, something from mastodon.social?
1 0 Reply@[email protected] Nope. If I find a post, I'll test.
1 0 Reply@[email protected] Thank you! No rush. It should work and look exactly the same way as with iframes.
1 0 Reply@[email protected] Anyway, will have to wait for it to work.
My instance is still 4.2.10, so it doesn't seem to work well...1 0 Reply
1 0 Reply