Does anyone know what the most broadly implemented standard is for signalling that a web page has an alternative ActivityPub endpoint?

What I found online (and with @evan@cosocial.ca and @silverpill@mitra.social's input) was to deliver a Link header and set a <link> tag, but it doesn't seem to work (at least with Megalodon)...

@julian @evan @silverpill I found Link tag to suffice. Do you also have webfinger implemented?

@mauve@mastodon.mauve.moe thanks for the response. While I implemented the link tag for all user, post, topic, and category routes (basically, anything that had a corresponding AP endpoint), I only checked a link to a post, which should have returned a Note object.

I didn't check a link to a user profile, so maybe that's it.

AIUI, webfinger wouldn't apply for other object types.

@evan@cosocial.ca @silverpill@mitra.social

Follow

@julian @evan @silverpill Cool mind sending a link to the post json-ld and maybe the source code? I'd love to test it against my implementations and see what's up.

@julian @evan @silverpill in my tests I found masto could get annoyed if it cannot fully resolve the author of the post and all the extra details. Unsure if that's relevant here. Try checking your http server logs vs the mastodon source code.

@julian @evan @silverpill In general I have had to do this for most implementations to catch gotchas 😅

@mauve@mastodon.mauve.moe Yeah, sure thing! This is the source code for one of them, it adds the link header when loading a topic.

You can try viewing the source of https://community.nodebb.org/post/99307 or making a HEAD call against it to see the meta tag and Link header, respectively.

Sign in to participate in the conversation
Mauvestodon

Escape ship from centralized social media run by Mauve.