summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2023-03-04 13:23:19 +0100
committerDaniel Friesel <derf@finalrewind.org>2023-03-04 13:23:19 +0100
commitc0fb7c1b138871643b197bd5f9e189027cda4725 (patch)
tree9266f211cc6384a4d4a3cc439cc9be427c50d18e /lib/Travelynx/Controller
parent5461326f01f6b043f2dd0470788e03fd68790e5e (diff)
webfinger: adjust profile visibility1.30.6
Diffstat (limited to 'lib/Travelynx/Controller')
-rw-r--r--lib/Travelynx/Controller/Account.pm5
1 files 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: (?<name> [^@]+ ) [@] $root_url $ }x )
+ or not $resource
+ =~ m{ ^ acct: [@]? (?<name> [^@]+ ) [@] $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;
}