From ad253e48e811819df06b43c1c65969d9e52ec814 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 8 Jan 2023 10:01:51 +0100 Subject: webfinger queries are prefixed with acct: --- lib/Travelynx/Controller/Account.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Travelynx/Controller/Account.pm b/lib/Travelynx/Controller/Account.pm index b062f90..d1d2a1f 100644 --- a/lib/Travelynx/Controller/Account.pm +++ b/lib/Travelynx/Controller/Account.pm @@ -981,7 +981,7 @@ sub webfinger { my $root_url = $self->base_url_for('/')->to_abs->host; if ( not $root_url - or not $resource =~ m{ ^ (? [^@]+ ) [@] $root_url $ }x ) + or not $resource =~ m{ ^ acct: (? [^@]+ ) [@] $root_url $ }x ) { $self->render( 'not_found', status => 404 ); return; -- cgit v1.2.3