summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller/Profile.pm
diff options
context:
space:
mode:
authorDerf Null <derf@finalrewind.org>2023-06-23 22:46:15 +0200
committerDerf Null <derf@finalrewind.org>2023-06-23 22:46:15 +0200
commitee6470e0d8db6dc3d66af7dad9d145719f3fdcec (patch)
tree7eaf3069e7d298953c7561d6c6419fb44d0c6c3a /lib/Travelynx/Controller/Profile.pm
parentc5957fbdfdf5a3871e0ae421c7e6042ce580d52d (diff)
status card / profile: fix users being unable to see own travelynx-only status1.32.7
Diffstat (limited to 'lib/Travelynx/Controller/Profile.pm')
-rwxr-xr-xlib/Travelynx/Controller/Profile.pm10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/Travelynx/Controller/Profile.pm b/lib/Travelynx/Controller/Profile.pm
index ff69c43..fa46361 100755
--- a/lib/Travelynx/Controller/Profile.pm
+++ b/lib/Travelynx/Controller/Profile.pm
@@ -109,6 +109,7 @@ sub profile {
or (
$visibility eq 'travelynx'
and ( $my_user
+ or $is_self
or $self->status_token_ok($status) )
)
or (
@@ -134,7 +135,7 @@ sub profile {
my @journeys;
if ( $user->{past_visible} == 2
- or ( $user->{past_visible} == 1 and $my_user ) )
+ or ( $user->{past_visible} == 1 and ( $my_user or $is_self ) ) )
{
my %opt = (
@@ -151,8 +152,8 @@ sub profile {
if (
$user->{default_visibility_str} eq 'public'
- or ( $user->{default_visibility_str} eq 'travelynx'
- and $my_user )
+ 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' )
@@ -424,6 +425,7 @@ sub user_status {
or (
$visibility eq 'travelynx'
and ( $my_user
+ or $is_self
or $self->journey_token_ok( $journey, $ts ) )
)
or (
@@ -474,6 +476,7 @@ sub user_status {
or (
$visibility eq 'travelynx'
and ( $my_user
+ or $is_self
or $self->status_token_ok( $status, $ts ) )
)
or (
@@ -590,6 +593,7 @@ sub status_card {
or (
$visibility eq 'travelynx'
and ( $my_user
+ or $is_self
or $self->status_token_ok($status) )
)
or (