superseriousbusiness / gotosocial

Fast, fun, small ActivityPub server.
https://docs.gotosocial.org
GNU Affero General Public License v3.0
3.61k stars 304 forks source link

[feature] Implement the /api/v2/instance endpoint #1388

Closed ghost closed 1 year ago

ghost commented 1 year ago

Is your feature request related to a problem ?

Newer Mastodon clients use the /api/v2/instance endpoint which was introduced in Mastodon 4.0. For example, Ivory for iOS: https://github.com/superseriousbusiness/gotosocial/issues/1339, as verified by Takahē: https://github.com/jointakahe/takahe/issues/473

Describe the solution you'd like.

The /api/v2/instance endpoint is implemented, increasing compatibility with newer clients.

Describe alternatives you've considered.

Adding support for the /api/v1/instance endpoint on the clients is an option, however this endpoint was deprecated by Mastodon in version 4.0, so some clients may choose not to support it.

Additional context.

Here is a diff between the /api/v1/instance and /api/v2/instance responses for mastodon.social: instancediff.txt

A summary of changes I've spotted:

I'm creating this issue since I didn't see the /api/v2/instance endpoint on the ROADMAP.md file.

tsmethurst commented 1 year ago

Ah thanks :)