cleanup; perltidy

This commit is contained in:
Birte Kristina Friesel 2023-07-16 10:30:23 +02:00
parent 1e49ecf145
commit 40bec7774b
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA

View file

@ -409,8 +409,7 @@ sub homepage {
connections => $connecting_trains, connections => $connecting_trains,
transit_fyi => $transit_fyi, transit_fyi => $transit_fyi,
); );
$self->users->mark_seen( $self->users->mark_seen( uid => $uid );
uid => $self->current_user->{id} );
} }
)->catch( )->catch(
sub { sub {
@ -419,8 +418,7 @@ sub homepage {
user_status => $status, user_status => $status,
journey_visibility => $journey_visibility, journey_visibility => $journey_visibility,
); );
$self->users->mark_seen( $self->users->mark_seen( uid => $uid );
uid => $self->current_user->{id} );
} }
)->wait; )->wait;
return; return;
@ -428,17 +426,16 @@ sub homepage {
else { else {
$self->render( $self->render(
'landingpage', 'landingpage',
user_status => $status, user_status => $status,
journey_visibility => $journey_visibility, journey_visibility => $journey_visibility,
); );
$self->users->mark_seen( uid => $self->current_user->{id} ); $self->users->mark_seen( uid => $uid );
return; return;
} }
} }
else { else {
@recent_targets = uniq_by { $_->{eva} } @recent_targets = uniq_by { $_->{eva} }
$self->journeys->get_latest_checkout_stations( $self->journeys->get_latest_checkout_stations( uid => $uid );
uid => $self->current_user->{id} );
} }
$self->render( $self->render(
'landingpage', 'landingpage',
@ -447,13 +444,10 @@ sub homepage {
with_autocomplete => 1, with_autocomplete => 1,
with_geolocation => 1 with_geolocation => 1
); );
$self->users->mark_seen( uid => $self->current_user->{id} ); $self->users->mark_seen( uid => $uid );
} }
else { else {
$self->render( $self->render( 'landingpage', intro => 1 );
'landingpage',
intro => 1
);
} }
} }
@ -912,7 +906,7 @@ sub station {
user_status => $user_status, user_status => $user_status,
can_check_out => $can_check_out, can_check_out => $can_check_out,
connections => $connecting_trains, connections => $connecting_trains,
title => "travelynx: $status->{station_name}", title => "travelynx: $status->{station_name}",
); );
} }
)->catch( )->catch(
@ -926,7 +920,7 @@ sub station {
related_stations => $status->{related_stations}, related_stations => $status->{related_stations},
user_status => $user_status, user_status => $user_status,
can_check_out => $can_check_out, can_check_out => $can_check_out,
title => "travelynx: $status->{station_name}", title => "travelynx: $status->{station_name}",
); );
} }
)->wait; )->wait;
@ -966,7 +960,7 @@ sub station {
} }
} }
)->wait; )->wait;
$self->users->mark_seen( uid => $self->current_user->{id} ); $self->users->mark_seen( uid => $uid );
} }
sub redirect_to_station { sub redirect_to_station {
@ -1309,10 +1303,10 @@ sub year_in_review {
$self->render( $self->render(
'year_in_review', 'year_in_review',
title => "travelynx Jahresrückblick $year", title => "travelynx Jahresrückblick $year",
year => $year, year => $year,
stats => $stats, stats => $stats,
review => $review, review => $review,
); );
} }