Okay, a few things:

1/ The VerifyLinkService does a case-sensitive compare, even of the domain. github.com/mastodon/mastodon/b

2/ The ActivityPub spec doesn't specifically mention case, but since URIs are used for identifiers and URIs are technically case sensitive (apart from the hostname), that makes identifiers case sensitive. w3.org/TR/activitypub/#obj-id

3/ ((And this part is just supposition)) Mastodon sweeps case under the rug by preventing two accounts from having the same case-insensitive identifier.

So this allows everything to work in a broadly compatible, but still user friendly way. The downshot is that as a user, you need to be consistent with your casing.

That said, I don't think it'd be unreasonable to case-fold in THIS instance, since it's within the same mastodon-scoped instance.

@saramg very interesting, thanks.
I'm new to Ruby, so I hope you won't mind the question - why do you downcase both sides rather than using a case-insensitive comparison?

@Edent Because I have a staggering lack of experience in Ruby. :)

Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!