autogestion / pubgate-philip

Minimalist blogging ActivityPub client made with Svelte
10 stars 2 forks source link

Use webfinger to discover users from Pleroma servers #26

Open autogestion opened 4 years ago

autogestion commented 4 years ago

Most fediverse servers support webfinger user autodiscover https://tools.ietf.org/html/rfc7033 Mastodon and PubGate also supports FollowYourNose autodiscover (means user could be discovered using url format https://domain/@user), while Pleroma (second most used server) supports only webfinger.

Now, in Search.svelte only FollowYourNose is used. Implement webfinger as secondary attempt to get user's profile. Webfinger request format is <domain>/.well-known/webfinger? resource=acc:user@domain