fix: Return the webfinger host as the instancev1 uri
property #908
No reviewers
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 change/feedback
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#908
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "nikclayton/akkoma:fix-uri"
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?
Despite the property name this is a domain, not a URI.
Return the WebFinger host to match Mastodon documented behaviour, public behaviour, and the behaviour of other Mastodon API compatible servers.
Fixes #907
uri
property@ -15,3 +15,3 @@
%{
uri: Pleroma.Web.Endpoint.url(),
uri: Pleroma.Web.WebFinger.host(),
This change actually does more than just removing the protocol identifier.
Endpoint.url()
is the domain used for ActivityPub IDs and REST API,Webfinger.host()
the domain used in userhandles and they can differ; e.g. having an endpoint ofsocial.example.org
but userhandle directly onexample.org
isn’t too uncommon.I checked a GtS instance with such a setup and it does indeed use the WebFinger domain, but I don’t know any such Mastodon instance. Given your goal is to exactly match Mastodon, could you check and make sure that’s really what Mastodon wants here?
And if this turns out we want this change, please mention this change and why we want it in the commit message
Done.
As an example, https://social.vivaldi.net/ --
social.vivaldi.net
is the host, they uservivaldi.net
as the server (e.g., https://social.vivaldi.net/@JaykeBird is @jaykebird@vivialdi.net (chosen at random)).https://social.vivaldi.net/api/v1/instance reports
uri
asvivaldi.net
and https://social.vivaldi.net/api/v2/instance reportsdomain
asvivaldi.net
.Thanks for confirming!
Unfortunately you appear to have forgot to actually change the commit message and merely (closed&reopened and) renamed the ull request title.
You can do so with
git commit --amend
followed bygit push --force-with-lease
— or just set the toggle in the sidebar to allow maintainer edits then I can fix it up before merge myself.Ideally the commit message would be something like:
Maintainer edits has been toggled. Please go ahead.
One point. "Akkoma’s divergence here is causing troubles in Pachli and Tusky." is irrelevant and quite possibly incorrect. I do not know which other clients / tools may be affected by this.
Then please clarify what you meant with this over in #907 if not "causing troubles for Pachli and Tusky" and/or which client or app you’re working on
Obviously, your project, your preferences for commit messages, but if the Akomma project's position is that deviations from the spec are only worth correcting if they're known to cause problems then I view that as a red flag (see also the initial push back on #907) for the maturity of the project's development practices.
Compare and contrast with the attitude of the Sharkey project. Initial report in https://activitypub.software/TransFem-org/Sharkey/-/issues/1046, no back-and-forth about whether or not this actually needs to be fixed, they just fixed it (https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/980).
Again, your project, your preferences, so feel free to do whatever you want with this feedback.
I do not see any such implication, but regardless I changed the wording a bit.
The motivation for a change and the relevant real-life test cases are quite important to understand the change itself and as a reference in case further adjustments are needed in the future.
fix: Return the domain as the instancev1to fix: Return the webfinger host as the instancev1uri
propertyuri
property77fe929948
tob54d98dba8
b54d98dba8
to707ef25b56
CI fails with new build warnings and a bunch of failing tests due to attempting to use a non-existent function.
Please always run tests and make sure changes actually work before submitting a patch. A defunct change just creates more delays and work for everyone involved.
I’d also advise against keeping up needless antagonism and refusal to cooperate; neither is helpful. It’s understandable to not immediately provide all info if things seems obvious to you, but then going out of your way to explicitly not answer follow up questions as done initially in the accompanying issue is quite unproductive. Having a bad day once is acceptable; keeping it up is not.
@ -15,3 +15,3 @@
%{
uri: Pleroma.Web.Endpoint.url(),
uri: Pleroma.Web.WebFinger.host(),
No
host
method exists neither as a public nor private function and I have no idea how you arrived at this name.You probably meant to use ´domain`
The PR was generated through the web UI (https://akkoma.dev/AkkomaGang/akkoma/src/branch/develop/lib/pleroma/web/mastodon_api/views/instance_view.ex, click the "edit" button). Please consider either (a) enabling CI runs on PRs generated this way, so potential contributors who do not have a local checkout of the code can easily see test results, or (b) if you require PR contributors to run local tests first then disable this mechanism for creating PRs.
"I have no idea how you arrived at this name." -- it's what Pleroma uses, so it seemed reasonable it would either work, or be a sufficient starting point for someone else who knows the Akkoma code base (https://git.pleroma.social/pleroma/pleroma/-/blob/develop/lib/pleroma/web/mastodon_api/views/instance_view.ex?ref_type=heads).
It is antagonistic, when presented with a clear deviation from a spec, to do anything other than plan work to fix the deviation. Questions like "does including it cause any issues" and "do there exist clients which fail on this specific deviation" are both irrelevant for deciding whether to fix this, inherently unanswerable without surveying all possible API clients, and come across as attempts to dodge responsibility for fixing the problem.
Again, I commend the Sharkey project's approach to you when faced with the same issue -- a clear understanding that deviation from the spec is their responsibility to fix, and a swift fix.
It is not possible to disable the UI editor. Commits which don’t build or pass tests are never acceptable and ensuring the work they present is not utterly broken and reasonably likely to be up to the task is always the author’s responsibility.
Bad choices, like using an editor without using any of the available sanity checks and blindly copying code excerpts from some other project (without attribution even), being in theory possible does not deflect the responsibility of choosing to make them.
The process of how to contribute and what's expected is documented.
Describing an issue and suggesting a fix is not antagonistic, refusing cooperation in determining the severity of the problem and understanding how the field is used by clients, throwing shade at every opportunity and wasting time with entirely made-up, broken changes is.
If you do not understand this, I suggest you retreat from this matter as it doesn’t help your goal of seeing this fixed.
If you had just stopped after reporting the issue and telling us the real-world impact, it would likely already be fixed by now; i spent more time on dealing with this than it takes to create and test a fix from scratch.
whilst i commend your desire to conform to specification, i would just like to reiterate that mastodon's docs are not a spec! they have in the past changed how fields behave, and likely will again. they never intended for anyone else to actually implement an API using the same schema, but people did
as such, drift between implementations will happen,
replaced by #927
Pull request closed