summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller/Profile.pm
diff options
context:
space:
mode:
authorDerf Null <derf@finalrewind.org>2023-06-04 19:37:35 +0200
committerDerf Null <derf@finalrewind.org>2023-06-04 19:37:35 +0200
commitee0480854f1d20d5437258b6b41030635a5dd08e (patch)
tree41c75cc1095830726ae902b2e449e98127b3c4bb /lib/Travelynx/Controller/Profile.pm
parentab04bc19b9694d906125345e516c89fd0c4626f1 (diff)
show follower-only checkins and journeys when viewing own profile
Diffstat (limited to 'lib/Travelynx/Controller/Profile.pm')
-rwxr-xr-xlib/Travelynx/Controller/Profile.pm15
1 files 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) )
)
)