snarfed / bridgy-fed

🌉 A bridge between decentralized social network protocols
https://fed.brid.gy/
Creative Commons Zero v1.0 Universal
486 stars 28 forks source link

Document that webmentions require microformats2 #1085

Closed fishy closed 3 weeks ago

fishy commented 1 month ago

I just implemented webmention from my website, and sent a webmention to https://fed.brid.gy/webmention. I got 202 response with body:

Added webmention task projects/bridgy-federated/locations/us-central1/queues/webmention/tasks/0364590518903229013 : {'source': '...', 'target': 'https://fed.brid.gy/'}

And I saw that a request with user-agent of Bridgy Fed (https://fed.brid.gy/) accessing my website within 2 minutes. But after one hour I still don't see the new post appearing in the activity tab of https://fed.brid.gy/web/<my domain>, wondering if there are some huge delay even with webmention, or if I did something wrong.

snarfed commented 1 month ago

Hmm, sorry for the trouble! What was the post URL? I can take a look.

fishy commented 1 month ago

Hmm, sorry for the trouble! What was the post URL? I can take a look.

https://b.yuxuan.org/fediverse

snarfed commented 1 month ago

Looks like we got backed up pretty badly. I'm still not sure why yet, but I'll get the backlog processed and figure out what happened.

snarfed commented 1 month ago

Finally got a chance to look at this. Looks like your site doesn't have microformats? If you want to use webmention to trigger BF instead of RSS/Atom, you'll need microformats. https://microformats.org/wiki/microformats2 , https://indieweb.org/microformats

fishy commented 1 month ago

Finally got a chance to look at this. Looks like your site doesn't have microformats? If you want to use webmention to trigger BF instead of RSS/Atom, you'll need microformats. https://microformats.org/wiki/microformats2 , https://indieweb.org/microformats

the doc doesn't make it clear that microformats are required for webmentions, and it worked without microformats before with rss feed 🫤

snarfed commented 1 month ago

True! Good point about the docs, sorry about that. I'll update them.

RSS and microformats both provide a predictable way to extract structured data, notably post content and optionally title, from arbitrary HTML. Without those, it's not easy for BF to determine what specifically in your HTML is the post content that you want to federate.

fishy commented 1 month ago

ok anyways I added microformat and looks like it works now (the webmention request now times out at 1s for some reason, but I do see the request from bridgy fed immediately after and then it's updated)

snarfed commented 1 month ago

Glad to hear it's working!