Skip to content

Find links in canonical mf2 object #29

@aaronpk

Description

@aaronpk

Currently the findOutgoingLinks function naively looks only at the first mf2 object in items.

Here is the proposed solution:

Add a parameter to findOutgoingLinks that accepts the source URL of the page. For each item in the mf2 items, look for the item with a url property that matches the URL given. If none is found, defaulting to the first item is fine.

This works under the assumption that this function will only be used for sending webmentions for post permalinks, as this will not work for feed pages that contain multiple h-entrys (although it will work for a feed page that uses h-feed).

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