aaronpk / webmention.io

Easily enable webmentions on any web site
https://webmention.io/
Other
776 stars 38 forks source link

How to send a webmention that is not explicitly a like, reply, or repost? #214

Open j2kun opened 1 week ago

j2kun commented 1 week ago

I just want to send a webmention that is a plain notification, without any special semantics associated with "liking", "bookmarking", or "replying." The webmention spec suggests this is the primary purpose, but when I try to send a vanilla webmention to webmention.io, I get errors complaining that various microformats are not implemented on the source website, and the only available microformats are "like", "reply", "repost" etc. with no simple "mention" option.

What should I do in this situation?

aaronpk commented 1 week ago

webmention.io is a service to receive (not send) webmentions, and does take some opinionated stances beyond the bare minimum webmention specification so that it is more useful to the people who use it on their websites.

That said, it should accept a webmention from a source URL that has no microformats. It's possible that if you have some microformats but they are not well formed it might reject that.

j2kun commented 1 week ago

webmention.io is a service to receive (not send) webmentions

By "send" I mean I am posting to the webmention.io API when it is discovered on the target website.

I will try "u-mention-of", which appears to be a default.

j2kun commented 1 week ago

Looks like that fails. I tried

http://php.microformats.io/?url=https://www.jeremykun.com/fhe-in-production/

which produces https://gist.github.com/j2kun/759804379117a19c8375c6ef580febae

I try to post a webmention to one of those links and get

but webmention.io reports

{
  "status": "no_link_found",
  "source": "https://www.jeremykun.com/fhe-in-production/",
  "target": "https://www.jeremykun.com/2024/05/04/fhe-overview/",
  "summary": "The Microformats at the source URL do not contain a link to the target URL. Check the source URL in a Microformats parser such as php.microformats.io"
}
snarfed commented 1 day ago

Interesting. @aaronpk when wm.io does find mf2, does it only look for the target URL in the mf2 property values? This source doc has h-entry, but no explicit mf2 properties, so the content ends up in name, which has all of the HTML stripped out, including the target link.