indieweb / mention-client-php

Client library for sending webmention and pingback notifications
https://indieweb.org/webmention
97 stars 19 forks source link

findOutgoingLinks method should return only URLs in <a> tags #33

Open aaronpk opened 7 years ago

aaronpk commented 7 years ago

Currently the findOutgoingLinks method will return any mf2 property that is a URL, regardless of the element the value came from. For example, <data class="u-in-reply-to" value="http://example.com/"> 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.