I could have sworn Mastodon sent Webmentions for URLs in posts. I guess I was wrong.
(I just spent a lot of time adding Webmention functionality to a site because I thought Mastodon sent them. Oops!)
Post
I could have sworn Mastodon sent Webmentions for URLs in posts. I guess I was wrong.
(I just spent a lot of time adding Webmention functionality to a site because I thought Mastodon sent them. Oops!)
@ramsey i use @bsky.brid.gy to accomplish this. It bridges mastodon and bsky to webmentions
@evert @bsky.brid.gy I am bridged, but that doesn’t seem to work, unless I’m doing something wrong.
@ramsey @bsky.brid.gy there's 2 kinds of bridgy, one for bsky/mastodon and one for both to webmention. Do you have the right bridge?
@evert @bsky.brid.gy Oh, I guess I’m not signed up for the other. I’ll check that out.
It turns out there’s no way to even attempt detecting a mention on a Mastodon URL without a headless browser because Mastodon requires JavaScript to load up all the content into the DOM.
@ramsey You can’t use the api?
@michael That’s not how Webmentions work.
@ramsey Ah. I didn’t think of it as alternative to web mention. I thought of it as alternative to web scraping. (I had assumed your message was about attempting to scrape mastodon for mentions of URLs).
Apologies.
@michael I mean, technically, Webmention is just a scraping spec. 😁
@ramsey lol. I have never really looked into it.
I find it pretty cool that mastodon just respects Accepts: application/json headers on pretty much any valid url.
I probably shouldn’t be because that’s kinda the point of the header, but it’s so rare these days that I still think it’s cool.
@kevinmarks.com I’m federating in the other direction through Brid.gy, so I’m not sure it works. I didn’t get a mention posted to my site when I posted a link here.
@ramsey I just googled webmentions and gemini happily lied to my face and mentioned mastodon multiple times
@ramsey I think Snac send webmentions.