Outgoing remote mentions don't get resolved correctly if referenced with non-canonical casing
If a remote user with canonical acct Username@remoteinstance.tld
is mentioned with @username@remoteinstance.tld
, this causes outgoing AP messages to reference the user by https://localinstance.tld/@username@remoteinstance.tld
, making mentions resolution impossible.
I'm fairly certain this is caused by this line, as it seems to be checking for exact equivalence, causing username
not to match the canonical Username
, which causes this line to fall back to https://{localinstance.tld/${acct}
.