Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
j2kun opened this issue Oct 2, 2024 · 4 comments
Open

Comments

@j2kun
Copy link

j2kun commented Oct 2, 2024

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
Copy link
Owner

aaronpk commented Oct 2, 2024

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
Copy link
Author

j2kun commented Oct 2, 2024

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
Copy link
Author

j2kun commented Oct 2, 2024

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
Copy link
Contributor

snarfed commented Oct 10, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants