Skip to content

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

Open
@aaronpk

Description

@aaronpk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions