summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-07-16 10:30:23 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2023-07-16 10:30:23 +0200
commit40bec7774b53b1f127a5a5d47ff3fafc9650205f (patch)
tree2430db66d589082d6d7078a220a556a3bcc60485 /lib/Travelynx/Controller
parent1e49ecf145598c62d273a432bfba3fa50c921ebd (diff)
cleanup; perltidy
Diffstat (limited to 'lib/Travelynx/Controller')
-rwxr-xr-xlib/Travelynx/Controller/Traveling.pm34
1 files changed, 14 insertions, 20 deletions
diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm
index fe9b4f5..c69d517 100755
--- a/lib/Travelynx/Controller/Traveling.pm
+++ b/lib/Travelynx/Controller/Traveling.pm
@@ -409,8 +409,7 @@ sub homepage {
connections => $connecting_trains,
transit_fyi => $transit_fyi,
);
- $self->users->mark_seen(
- uid => $self->current_user->{id} );
+ $self->users->mark_seen( uid => $uid );
}
)->catch(
sub {
@@ -419,8 +418,7 @@ sub homepage {
user_status => $status,
journey_visibility => $journey_visibility,
);
- $self->users->mark_seen(
- uid => $self->current_user->{id} );
+ $self->users->mark_seen( uid => $uid );
}
)->wait;
return;
@@ -428,17 +426,16 @@ sub homepage {
else {
$self->render(
'landingpage',
- user_status => $status,
+ user_status => $status,
journey_visibility => $journey_visibility,
);
- $self->users->mark_seen( uid => $self->current_user->{id} );
+ $self->users->mark_seen( uid => $uid );
return;
}
}
else {
@recent_targets = uniq_by { $_->{eva} }
- $self->journeys->get_latest_checkout_stations(
- uid => $self->current_user->{id} );
+ $self->journeys->get_latest_checkout_stations( uid => $uid );
}
$self->render(
'landingpage',
@@ -447,13 +444,10 @@ sub homepage {
with_autocomplete => 1,
with_geolocation => 1
);
- $self->users->mark_seen( uid => $self->current_user->{id} );
+ $self->users->mark_seen( uid => $uid );
}
else {
- $self->render(
- 'landingpage',
- intro => 1
- );
+ $self->render( 'landingpage', intro => 1 );
}
}
@@ -912,7 +906,7 @@ sub station {
user_status => $user_status,
can_check_out => $can_check_out,
connections => $connecting_trains,
- title => "travelynx: $status->{station_name}",
+ title => "travelynx: $status->{station_name}",
);
}
)->catch(
@@ -926,7 +920,7 @@ sub station {
related_stations => $status->{related_stations},
user_status => $user_status,
can_check_out => $can_check_out,
- title => "travelynx: $status->{station_name}",
+ title => "travelynx: $status->{station_name}",
);
}
)->wait;
@@ -966,7 +960,7 @@ sub station {
}
}
)->wait;
- $self->users->mark_seen( uid => $self->current_user->{id} );
+ $self->users->mark_seen( uid => $uid );
}
sub redirect_to_station {
@@ -1309,10 +1303,10 @@ sub year_in_review {
$self->render(
'year_in_review',
- title => "travelynx Jahresrückblick $year",
- year => $year,
- stats => $stats,
- review => $review,
+ title => "travelynx Jahresrückblick $year",
+ year => $year,
+ stats => $stats,
+ review => $review,
);
}