cleanup; perltidy
This commit is contained in:
parent
1e49ecf145
commit
40bec7774b
1 changed files with 14 additions and 20 deletions
|
@ -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;
|
||||||
|
@ -431,14 +429,13 @@ sub homepage {
|
||||||
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
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue