From ee0480854f1d20d5437258b6b41030635a5dd08e Mon Sep 17 00:00:00 2001 From: Derf Null Date: Sun, 4 Jun 2023 19:37:35 +0200 Subject: show follower-only checkins and journeys when viewing own profile --- lib/Travelynx/Controller/Profile.pm | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/lib/Travelynx/Controller/Profile.pm b/lib/Travelynx/Controller/Profile.pm index 1e29748..52742fc 100755 --- a/lib/Travelynx/Controller/Profile.pm +++ b/lib/Travelynx/Controller/Profile.pm @@ -113,7 +113,8 @@ sub profile { ) or ( $visibility eq 'followers' - and ( ( $relation and $relation eq 'follows' ) + and ( ( $relation and $relation eq 'follows' ) + or $is_self or $self->status_token_ok($status) ) ) ) @@ -289,7 +290,8 @@ sub journey_details { ) or ( $visibility eq 'followers' - and ( ( $relation and $relation eq 'follows' ) + and ( ( $relation and $relation eq 'follows' ) + or $is_self or $self->journey_token_ok($journey) ) ) ) @@ -427,7 +429,8 @@ sub user_status { ) or ( $visibility eq 'followers' - and ( ( $relation and $relation eq 'follows' ) + and ( ( $relation and $relation eq 'follows' ) + or $is_self or $self->journey_token_ok( $journey, $ts ) ) ) ) @@ -476,7 +479,8 @@ sub user_status { ) or ( $visibility eq 'followers' - and ( ( $relation and $relation eq 'follows' ) + and ( ( $relation and $relation eq 'follows' ) + or $is_self or $self->status_token_ok( $status, $ts ) ) ) ) @@ -591,7 +595,8 @@ sub status_card { ) or ( $visibility eq 'followers' - and ( ( $relation and $relation eq 'follows' ) + and ( ( $relation and $relation eq 'follows' ) + or $is_self or $self->status_token_ok($status) ) ) ) -- cgit v1.2.3