From c0fb7c1b138871643b197bd5f9e189027cda4725 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 4 Mar 2023 13:23:19 +0100 Subject: webfinger: adjust profile visibility --- lib/Travelynx/Controller/Account.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Travelynx/Controller/Account.pm b/lib/Travelynx/Controller/Account.pm index 4836117..a799ba1 100644 --- a/lib/Travelynx/Controller/Account.pm +++ b/lib/Travelynx/Controller/Account.pm @@ -986,7 +986,8 @@ sub webfinger { my $root_url = $self->base_url_for('/')->to_abs->host; if ( not $root_url - or not $resource =~ m{ ^ acct: (? [^@]+ ) [@] $root_url $ }x ) + or not $resource + =~ m{ ^ acct: [@]? (? [^@]+ ) [@] $root_url $ }x ) { $self->render( 'not_found', status => 404 ); return; @@ -995,7 +996,7 @@ sub webfinger { my $name = $+{name}; my $user = $self->users->get_privacy_by_name( name => $name ); - if ( not $user or not $user->{public_level} & 0x22 ) { + if ( not $user ) { $self->render( 'not_found', status => 404 ); return; } -- cgit v1.2.3