-
Notifications
You must be signed in to change notification settings - Fork 717
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
fix: rewrote utils.parseOpenGraph() so it can parse arrays of objects with properties. #2521
base: master
Are you sure you want to change the base?
Conversation
I did some more work on the Open Graph parser. Let me know if you need any other changes. |
Hello @daball, and thanks for your contribution! Is this ready for review or are you planning to work on it more? If it's not ready, please convert it to draft 🙂 |
I think it's ready. But because I know it's not finished, I will reluctantly go back to draft. And because I don't like that it's not finished. It needs more test cases and it needs me to finish the conversion and also to probably break the API just a little further. And I need a couple more days to finish it. |
I updated the Open Graph Parser so that it can parse arrays of images with properties and present them as arrays of image objects with properties. There are other Open Graph meta tags which can also contain arrays of objects with properties, and this update does not address those (e.g. video, etc.), but it provides a template which works more specifically than the simpler code which is still featured. This update is neither fully generalized nor fully specialized but presents another way to do it. This new code still passes the old tests and the new test, but I can imagine many other test cases which will still fail without additional work on this module. As long as everyone is okay with this approach I can work on it further.