summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) )
)
)