Problems with "-" in domain names?

I have set up a new instance for a not-for-profit organisation I am supporting and noticed that Akkoma seems to have issues with domains which include a “-”?

First attempt, a “proper” account, works:

image

Second attempt, an account with a few dashes, won’t work:
image

In the log I see the below, please note that all dashes are gone?

09:59:58.305 [warning] Can’t find LRDD template in “https://xnbawjoa.social/.well-known/host-meta”: {:error, “non-existing domain”}

The same happens with my personal account:
image

Here as well, the dash got removed?

10:02:18.597 [warning] Can’t find LRDD template in “https://zellmbc.com/.well-known/host-meta”: {:error, “non-existing domain”}

Bug or feature? :grinning:

ahah
yeah i just found a line on User.Search that randomly replaces URL-reserved characters with “”

i love inheriting code

2 Likes

Thanks for confirming, is there a workaround I can use until you manage to put a fix into a release?
I am running stable via Docker/OTP

yeah, if you can use the URL as-is (i.e https://an-example.example.com/users/someuser) it won’t escape like that

it’s only if you try searching for the @user@domain style

Hm, I seem to be missing something.

What I try to do is to follow these accounts, and up to now I always went via search and the hit the follow button.
Now, if I try this with eg. https://xn--baw-joa.social/users/@SECUSO_Research or my personal https://social.zell-mbc.com/users/thomas it still won’t find the account?

image

Also tried this from their website, but no success.

ah that’s mastodon being… mastodon

their actual url is https://xn--baw-joa.social/users/SECUSO_Research (no @)

incidentally, fixed via Allow dashes in domain name search · b058df3faa - akkoma - Akkoma Development

2 Likes

Bingo, that did the trick! And a good workaround for me, I won’t have users come on just yet.