Make your app discoverable on Mastodon
I have been coding a fediverse app just to understand different concepts on fediverse in general and Mastodon in particular.
The first step is to make your app discoverable on Mastodon. The sequence goes likes this:
- a user searches for your name with domain name on mastodon
- mastodon queries the server with
webfinger
- your app replies back with a link to actor profile; actor profile should contain link to profile, inbox, and outbox
- mastodon will make a call to inbox and outbox
- if all the responses are valid, then mastodon shows the user profile in the search result
All of these responses should have a header: application/activity+json
To know the exact structure read through the references below. At some point in the future, I will add golang code.
References
- https://dev.to/wadecodez/how-to-join-the-fediverse-wout-mastodon-1agh
- https://blog.joinmastodon.org/2018/06/how-to-implement-a-basic-activitypub-server/
- https://seb.jambor.dev/posts/understanding-activitypub/
- https://rknight.me/blog/building-an-activitypub-server/