Unverified Commit ad253e48 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

webfinger queries are prefixed with acct:

parent 04817690
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;