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 must log in or register to comment.
Most software responds to /.well-known/nodeinfo with this info iirc
@retiolus@lemmy.cat pretty much all software should be implementing nodeinfo: https://github.com/jhass/nodeinfo
usually reachable via HTTP on an endpoint like url/nodeinfo/2.0.json