diff options
| author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-06-09 13:50:46 +0200 | 
|---|---|---|
| committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-06-09 13:50:46 +0200 | 
| commit | 797465182aa55ca6ea5327a1ae09daec11205041 (patch) | |
| tree | 1248666f637d3f570fdf2af25d56202047e01f3e /lib/Travelynx | |
| parent | 0d3e16487861ca644920b7bacf1db0bac3c63199 (diff) | |
Traveling: do not compute map data if no destination has been set2.13.1
Diffstat (limited to 'lib/Travelynx')
| -rwxr-xr-x | lib/Travelynx/Controller/Traveling.pm | 18 | 
1 files changed, 12 insertions, 6 deletions
| diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm index cb78617..0cfccb1 100755 --- a/lib/Travelynx/Controller/Traveling.pm +++ b/lib/Travelynx/Controller/Traveling.pm @@ -359,9 +359,12 @@ sub homepage {  		$self->stash( timeline => [@timeline] );  		my @recent_targets;  		if ( $status->{checked_in} ) { -			my $map_data = $self->journeys_to_map_data( -				journeys => [$status], -			); +			my $map_data = {}; +			if ( $status->{arr_name} ) { +				$map_data = $self->journeys_to_map_data( +					journeys => [$status], +				); +			}  			my $journey_visibility  			  = $self->compute_effective_visibility(  				$user->{default_visibility_str}, @@ -446,9 +449,12 @@ sub status_card {  	$self->stash( timeline => [@timeline] );  	if ( $status->{checked_in} ) { -		my $map_data = $self->journeys_to_map_data( -			journeys => [$status], -		); +		my $map_data = {}; +		if ( $status->{arr_name} ) { +			$map_data = $self->journeys_to_map_data( +				journeys => [$status], +			); +		}  		my $journey_visibility  		  = $self->compute_effective_visibility(  			$self->current_user->{default_visibility_str}, | 
