Skip to content
Snippets Groups Projects
Unverified Commit ee6470e0 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

status card / profile: fix users being unable to see own travelynx-only status

parent c5957fbd
No related branches found
No related tags found
No related merge requests found
...@@ -109,6 +109,7 @@ sub profile { ...@@ -109,6 +109,7 @@ sub profile {
or ( or (
$visibility eq 'travelynx' $visibility eq 'travelynx'
and ( $my_user and ( $my_user
or $is_self
or $self->status_token_ok($status) ) or $self->status_token_ok($status) )
) )
or ( or (
...@@ -134,7 +135,7 @@ sub profile { ...@@ -134,7 +135,7 @@ sub profile {
my @journeys; my @journeys;
if ( $user->{past_visible} == 2 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 = ( my %opt = (
...@@ -151,8 +152,8 @@ sub profile { ...@@ -151,8 +152,8 @@ sub profile {
if ( if (
$user->{default_visibility_str} eq 'public' $user->{default_visibility_str} eq 'public'
or ( $user->{default_visibility_str} eq 'travelynx' or ( $user->{default_visibility_str} eq 'travelynx'
and $my_user ) and ( $my_user or $is_self ) )
or ( $user->{default_visibility_str} eq 'followers' or ( $user->{default_visibility_str} eq 'followers'
and $relation and $relation
and $relation eq 'follows' ) and $relation eq 'follows' )
...@@ -424,6 +425,7 @@ sub user_status { ...@@ -424,6 +425,7 @@ sub user_status {
or ( or (
$visibility eq 'travelynx' $visibility eq 'travelynx'
and ( $my_user and ( $my_user
or $is_self
or $self->journey_token_ok( $journey, $ts ) ) or $self->journey_token_ok( $journey, $ts ) )
) )
or ( or (
...@@ -474,6 +476,7 @@ sub user_status { ...@@ -474,6 +476,7 @@ sub user_status {
or ( or (
$visibility eq 'travelynx' $visibility eq 'travelynx'
and ( $my_user and ( $my_user
or $is_self
or $self->status_token_ok( $status, $ts ) ) or $self->status_token_ok( $status, $ts ) )
) )
or ( or (
...@@ -590,6 +593,7 @@ sub status_card { ...@@ -590,6 +593,7 @@ sub status_card {
or ( or (
$visibility eq 'travelynx' $visibility eq 'travelynx'
and ( $my_user and ( $my_user
or $is_self
or $self->status_token_ok($status) ) or $self->status_token_ok($status) )
) )
or ( or (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment