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

Define an algorithm to determine the primary mf2 object of a page #78

Open
aaronpk opened this issue Mar 24, 2024 · 0 comments
Open

Define an algorithm to determine the primary mf2 object of a page #78

aaronpk opened this issue Mar 24, 2024 · 0 comments

Comments

@aaronpk
Copy link
Member

aaronpk commented Mar 24, 2024

When looking at the parsed mf2 JSON of a page, it is not always trivial to determine which object is the "primary" object of the page. In some cases there is only one object, so that's usually the primary object. In other cases there might be multiple objects, (h-card first, h-entry second, where h-entry is the primary object), and when there are multiple objects the page might be a feed (no primary object) or might not be a feed.

I've already done quite a bit of work in XRay to determine what the primary object of a page is. There are lots of test cases included. However there are still edge cases that are not handled well by the current algorithm, so it would be useful to try to more formally document these, both to better cover the edge cases and so that others don't have to re-create the algorithm themselves as well.

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

1 participant