From c9bae6fcee739e057f95512f9a3d56afcfaf84e8 Mon Sep 17 00:00:00 2001 From: Derf Null Date: Mon, 3 Jul 2023 18:12:34 +0200 Subject: journeys: simplify visibily check --- lib/Travelynx/Controller/Profile.pm | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'lib/Travelynx/Controller') diff --git a/lib/Travelynx/Controller/Profile.pm b/lib/Travelynx/Controller/Profile.pm index 0e03423..b8812f8 100755 --- a/lib/Travelynx/Controller/Profile.pm +++ b/lib/Travelynx/Controller/Profile.pm @@ -134,21 +134,6 @@ sub profile { $opt{after} = $now->clone->subtract( weeks => 4 ); } - if ( - $user->{default_visibility_str} eq 'public' - or ( $user->{default_visibility_str} eq 'travelynx' - and ( $my_user or $is_self ) ) - or ( $user->{default_visibility_str} eq 'followers' - and $relation - and $relation eq 'follows' ) - ) - { - $opt{with_default_visibility} = 1; - } - else { - $opt{with_default_visibility} = 0; - } - if ($is_self) { $opt{min_visibility} = 'followers'; } -- cgit v1.2.3