this post was submitted on 24 Nov 2023
21 points (95.7% liked)

Fediverse

17683 readers
11 users here now

A community dedicated to fediverse news and discussion.

Fediverse is a portmanteau of "federation" and "universe".

Getting started on Fediverse;

founded 4 years ago
MODERATORS
 

While working on Fedimojis, I'd like to check that the link entered by the user is actually a Mastodon server, to avoid bugs or loading thousands of emojis from Pixelfed instances that don't distinguish between local and external emojis.

How can I do this?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 8 points 11 months ago

Okay! So you first need to check /.well-known/nodeinfo to get /nodeinfo/2.0.json!

In the case of Pixelfed it's in /api/nodeinfo/2.0.json