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
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