Can't search by status URL if the username contains an underscore
Example input: https://example.net/@user_alpha/10131547027810187
Example log output:
Jan 09 09:28:57 pleroma mix[12604]: Request: GET /api/v2/search?q=https:%2F%example.net%2F@user_alpha%2F10131547027810187&resolve=true
Jan 09 09:28:57 pleroma mix[12604]: ** (exit) {:bad_label, {:alabel, 'The label "user_alpha" is not a valid A-label: ulabel error={bad_label, {context,
"Codepoint 95 not allowed (\'DISALLOWED\') at posion 4 in \\"user_alpha\\""}}'}}
The only place the string A-label
occurs in code is in deps/idna/src/idna.erl
, and it doesn't seem like IDNA rules should be applied to usernames under any circumstances. Haven't found the root cause yet.