webfinger queries are prefixed with acct:

This commit is contained in:
Daniel Friesel 2023-01-08 10:01:51 +01:00
parent 04817690e8
commit ad253e48e8
No known key found for this signature in database
GPG key ID: 100D5BFB5166E005

View file

@ -981,7 +981,7 @@ sub webfinger {
my $root_url = $self->base_url_for('/')->to_abs->host;
if ( not $root_url
or not $resource =~ m{ ^ (?<name> [^@]+ ) [@] $root_url $ }x )
or not $resource =~ m{ ^ acct: (?<name> [^@]+ ) [@] $root_url $ }x )
{
$self->render( 'not_found', status => 404 );
return;