[bug] URI in instance information should be domain, not URL #545
Labels
No labels
approved, awaiting change
bug
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#545
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Your setup
From source
Extra details
Arch Linux
Version
ef279ac53f
PostgreSQL version
14.6
What were you trying to do?
Get the domain name from the instance information.
What did you expect to happen?
The domain name to be returned in the
uri
key.What actually happened?
Akkoma returns the endpoint URL in the
uri
key instead of the domain name as defined in the spec -https://docs.joinmastodon.org/entities/V1_Instance/#uri
toot
is mildly confused by this because it uses this key to store instance information in its configuration file and then cannot find it because@x@y.z
obviously won't matchhttps://y.z
.Logs
No response
Severity
I cannot use it as easily as I'd like
Have you searched for this issue?
this would be a bug in the client
https://mastodon.social/@Gargron/110429305552168098
apparently this is an old endpoint that masto doesn't even use anymore
Sure but since Akkoma doesn't (as best I can tell from the source at
9e9cf58fdf
) support the/api/v2/instance
call, what is a client supposed to do here? Just throw their hands up and refuse to talk to Akkoma instances because the deprecated call isn't spec-compliant but the replacement isn't implemented?it's supposed to do the sensible thing and treat URIs as URIs