summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller
diff options
context:
space:
mode:
authorDerf Null <derf@finalrewind.org>2023-07-03 18:12:34 +0200
committerDerf Null <derf@finalrewind.org>2023-07-03 18:12:34 +0200
commitc9bae6fcee739e057f95512f9a3d56afcfaf84e8 (patch)
treef80a5ce6cbf775f58db77b43ad55af6712dda27d /lib/Travelynx/Controller
parenta608ca6781c50ac170d347663a531850ab922cb0 (diff)
journeys: simplify visibily check
Diffstat (limited to 'lib/Travelynx/Controller')
-rwxr-xr-xlib/Travelynx/Controller/Profile.pm15
1 files changed, 0 insertions, 15 deletions
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';
}