Skip to content

searchAccounts can't handle user@example.org search #20

@diligiant

Description

@diligiant

The "@" case calls finger without prefixing with "acct:" (done in the url case) leading to an error.

I see also an issue when you transform the ActivityPub URI https://somedomain.org/someuser into web finger URI someuser@somedomain.org as there might not be a direct match. Serving_a_different_domain covers part of it.

  1. user@example.org might be handled by domainA.org webfinger (.well-known/host-meta).
  2. domainA.org webfinger might return https://domainB.org/user_example_org

(example might equal domainA which might equal domainB. Who knowns?)

Imagine a world where, like email, the account is handled by google. host-meta is like DNS MX.

I dug a little bit further: On the « official » mastodon server, accounts have 2 aliases domain.org/users/user and domain.org/@user, the id being the first. Both URLs json having the first one as the id (which is also webfinger's application/activity+json), how about querying the account's json to get the id even if provided with an alias URL?

my 2¢

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions