Edent,
@Edent@mastodon.social avatar

Given a random domain name, is there any reliable way to find the shared inbox?

That is, how do I go from example.social to example.social/inboxes/shared ?

If I had a user, I could use to get their details and find an inbox. But if I have no user…?

manlycoffee,
@manlycoffee@techhub.social avatar

@Edent

On Mastodon, it's https:// domain.name/.well-known/webfinger?resource=https%3A%2F%2Fdomain.name

For example: https://mastodon.social/.well-known/webfinger?resource=https%3A%2F%2Fmastodon.social

Then, from the resulting JRD response, look at the link of type application/activity+json, you should have the application actor's URL in the href.

Do a application/activity+json lookup, and the shared inbox should be at as:endpoints

Edent,
@Edent@mastodon.social avatar

@manlycoffee that's really useful, ta!

I was hoping to be able to do it in a single call - but it is good to know there's an alternative like that.

robb,
@robb@social.lol avatar

@Edent I don't think you can, it's not exposed that I know of (I checked ./well-known/nodeinfo).

For what reason would you want that if you don't have a user?

Edent,
@Edent@mastodon.social avatar

@robb it is (mostly) me being lazy.
If I'm sending a "Like" to example.social/users/posts/user/123456, I'd have to first request the status, then request the user. I was wondering if I could do it in a single call.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • fediverse
  • DreamBathrooms
  • ngwrru68w68
  • InstantRegret
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • tacticalgear
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • ethstaker
  • JUstTest
  • GTA5RPClips
  • modclub
  • tester
  • Leos
  • osvaldo12
  • cisconetworking
  • everett
  • cubers
  • normalnudes
  • anitta
  • megavids
  • provamag3
  • lostlight
  • All magazines