Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] /api/v*/instance domain and uri properties conflict with Mastodon’s usage of those property names #3467

Closed
daprice opened this issue Oct 20, 2024 · 1 comment · Fixed by #3477
Assignees
Labels
bug Something isn't working

Comments

@daprice
Copy link

daprice commented Oct 20, 2024

Describe the bug with a clear and concise description of what the bug is.

Mastodon uses the uri (in v1) and domain (in v2) properties for the domain name that gets added to account handles.

GoToSocial uses uri (in v1) for a link to the home page, and domain (in v2) for the domain where the API is hosted, with a separate account_domain property that serves the same purpose as Mastodon’s domain.

Mastodon API clients (in my case using the open source TootSDK library) that expect uri or domain to contain the account handle domain will have issues connecting to GoToSocial and/or displaying full account handles if a server is using separate domains for these.

What's your GoToSocial Version?

0.17.0 (tested on various instances running this version listed on FediDB)

GoToSocial Arch

No response

What happened?

GoToSocial’s uri property in /api/v1/instance and domain in /api/v2/instance conflict with Mastodon’s properties of the same name.

What you expected to happen?

Mastodon API compatibility as described in the docs

How to reproduce it?

call /api/v2/instance on a GoToSocial server

Anything else we need to know?

I’m wondering if this is intended behavior so I can handle it appropriately in a client app I’m developing.

@daprice daprice added the bug Something isn't working label Oct 20, 2024
@tsmethurst
Copy link
Contributor

Oh interesting, thanks, sounds like it might be a bug indeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants