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

REFACTOR update detectors for Embed 4.x #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jsirish
Copy link

@jsirish jsirish commented Dec 6, 2022

This PR updates the detectors to be compatible with embed/embed 4.x releases.

The type detector was removed from embed, so for now I've manually set $owner->EmbedType = 'video'; to be as non-disruptive to the template logic.

Subsequently, I've also commented out the validate() function as it's really only checking for EmbedType. I'm happy to adjust this if desired.

Like we did with Linkable, we're looking to migrate our oEmbed (Media) block away from Linkable and to your Embed module. If there's anything else we can help with we're happy to do so!

@JamesDPC
Copy link

There is a fork with recent support for embed/embed:^4 at https://github.com/dnadesign/silverstripe-embed - maybe the module is going to be maintained there?

As it's a change from embed 3 to 4, it would be a good to land this change as v2 and then release a patch for v1 to restrict embed/embed to ^3.

@jsirish
Copy link
Author

jsirish commented Jan 13, 2023

thanks @JamesDPC ! Hard to tell which version will be supported moving forward, but the DNA fork has been updated recently, I'll give it a shot in our project

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

Successfully merging this pull request may close these issues.

2 participants