indieweb / indieweb/mention-client-php

findOutgoingLinks method should return only URLs in <a> tags

Open
#33 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
105
Forks
22
PR merge metrics
No merged PRs in 30d

Description

Currently the `findOutgoingLinks` method will return any mf2 property that is a URL, regardless of the element the value came from. For example, `` will be considered a link, even though according to HTML it is not a link. This is a problem because sending a webmention to that URL will fail when its webmention endpoint tries to look for a link back.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the findOutgoingLinks method in the mention-client-php codebase and inspect how it extracts URL-valued microformats properties. Reproduce the issue with the provided data element example, then verify that only URLs from a elements are returned while URLs from other elements are excluded.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, php
Domain
web-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.