-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Wrong account names of users of Mastodon instances where WEB_DOMAIN != LOCAL_DOMAIN #7922
Comments
This behavior is by design. Since the domain that appears in ActivityPub Object is Mastodon may be hacking, but I don't want to hack or change the schema for features designed before Mastodon introduced ActivityPub. |
I'll admit If the issue is that ActivityPub lacks a means of name resolution, Matrix handles this in an elegant way using delegation. https://github.com/matrix-org/synapse/blob/master/docs/delegate.md I place a text file on my regular webserver ( |
I can only repeat what mei23 already said, maybe put a different way: The documentation linked in #6724 shows that the way this works for mastodon is that the webfinger Let's use a random user from show example
I've truncated the result a bit, but nothing in this Activitypub representation suggests that the users host might be I support mei23's opinion that this is not a Misskey issue and should not be worked on. Since Matrix is not part of Activitypub I also don't understand how that is relevant here. Misskey is also not in the position to single-handedly change the way Activitypub works, so this is not the right place to discuss how identity discovery should work. |
Thank you, that helped. Webfinger was the part I missed. I mentioned Matrix only because I was aware of how they handled aliasing domains (which I could solve using a static file). I hadn't realized webfinger was a general service that could provide the aliasing functionality for ActivityPub. |
The ability to host ActivityPub actors for a domain at a subdomain is a fairly useful and important one, and will become more so in future I suspect. If Misskey doesn't want to adopt the approach Mastodon has used, finding an alternative (maybe there needs to be a FEP?) that can be adopted broadly is a worthwhile endeavour. |
actually, there is something that suggests GET https://toot.kif.rocks/.well-known/webfinger?resource=acct:[email protected] HTTP/1.1
{
"subject": "acct:[email protected]",
"aliases": [
"https://toot.kif.rocks/@anathem",
"https://toot.kif.rocks/users/anathem"
],
"links": [
{
"rel": "http://webfinger.net/rel/profile-page",
"type": "text/html",
"href": "https://toot.kif.rocks/@anathem"
},
{
"rel": "self",
"type": "application/activity+json",
"href": "https://toot.kif.rocks/users/anathem"
},
{
"rel": "http://ostatus.org/schema/1.0/subscribe",
"template": "https://toot.kif.rocks/authorize_interaction?uri={uri}"
}
]
} note that we asked so the expected flow is something like this on misskey's side:
if i understood correctly, it seems misskey does not want to store this i think it would not be too weird for misskey to store |
Hi, I have the same issue, but I'm using GoToSocial instead of Mastodon. It looks like GoToSocial achieves this with exactly the same WebFinger trick that Mastodon uses: https://docs.gotosocial.org/en/latest/installation_guide/advanced/#can-i-host-my-instance-at-fediexampleorg-but-have-just-exampleorg-in-my-username So it's not an exclusively Mastodon issue. |
I think the mismatch of the domains is just confusing. From the example in #7922 (comment), let's say someone sees So I don't think Misskey should do whatever Mastodon currently does, to prevent this kind of confusion. |
This issue isn't about whether Misskey should support configuring an instance that way, though, just whether it should respect other instances that do it. And for what it's worth, most instances that do this have an obvious link to their instance if you visit their site, though with that said, many instances are private and don't need to accept public sign-ups anyway. |
I want to make explicitly clear that I am no longer part of the Misskey project and the following is my own opinion.
Since Misskey already stores both the username and the host, the solution would more likely be to "just" store the other host in the
You forgot to mention (or maybe did not consider) that this requires additional checks/redirects to be made to verify that (in the example) Otherwise I could have... (show example)
result in {
"subject": "acct:[email protected]",
"aliases": [
"https://example.com/@eve",
"https://example.com/users/eve"
],
"links": [
{
"rel": "http://webfinger.net/rel/profile-page",
"type": "text/html",
"href": "https://example.com/@eve"
},
{
"rel": "self",
"type": "application/activity+json",
"href": "https://example.com/users/eve"
}
]
} and the server could now act on behalf of The least that I think would have to be checked is that the "original" webfinger as well as the webfinger from the Or are you proposing that different users can have the same further non-technical rant
In my opinion, webfinger, and even more this use of the Especially since there are several fedi servers that have names like But of course there is the elephant in the room and as soon as they do something, it is considered correct. |
re: the opinion
this would be more incorrect, no? the host is still
sure
this would be interesting but no. a given webfinger server should have only one canonical JRD per unique URI, so querying for the re: the rant
webfinger is only useful insofar as you care about having some per https://www.rfc-editor.org/rfc/rfc7033#section-7 :
basically what is happening here is that |
The
sure, the part that i have issue with though is that the ActivityPub canonical IRI (i.e. |
The |
💡 Summary
This is from the outside perspective of a user of a Mastodon server that has its LOCAL_DOMAIN (the "host" part of the account name) set differently from the WEB_DOMAIN (where the web interface and API of that instance resides).
When interacting with such a Mastodon instance, Misskey seems to take the WEB_DOMAIN as part of the account name, while the LOCAL_DOMAIN would be correct.
To explain the issue, I'll use the Mastodon instance I am on, with the following data:
toot.kif.rocks
kif.rocks
@[email protected]
toot.kif.rocks
🙂 Expected Behavior (Example 1)
If someone on a Misskey instance answers to one of my posts, the answer is directed to
@[email protected]
.If someone on a Misskey instance answers to one of my posts, the answer is directed to
@[email protected]
.🙂 Expected Behavior (Example 2)
If I view the thread from Example 1 in the Misskey web interface (not logged in), I see my own post marked as written by
@[email protected]
.If I view the thread from Example 1 in the Misskey web interface (not logged in), I see my own post marked as written by
@[email protected]
.(Tested with the Misskey instance mk.absturztau.be -- not sure about the version, but it currently loads "app.12.94.1.js" in the html head section.)
📝 Steps to Reproduce
One example of such a Mastodon instance would be
kif.rocks
, with its web interface and API at toot.kif.rocks. You may interact with me (I speak english and german); trying to answer one of my posts might suffice, but in case you need to follow me: @[email protected].Additional Info
@username\@[email protected]
. As this isn't the case when I use mastodon's web interface, I suspect that there is a bug in my client which is triggered by the issue above.The text was updated successfully, but these errors were encountered: