diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-12-14 23:46:36 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-12-14 23:46:36 +0100 |
commit | 7ae60f2ea44aa61ed0d9451c4389b6d7630d583e (patch) | |
tree | cc0cddad42d299a9815d7d2b06579c6a144266f8 /lib/Travelynx.pm | |
parent | 46fc64de4831e90971c4a3db91d6fcfa3628a2d0 (diff) |
Travel API: comment support
Diffstat (limited to 'lib/Travelynx.pm')
-rwxr-xr-x | lib/Travelynx.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index def2d3d..73c221a 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -806,8 +806,8 @@ sub startup { $self->helper( 'update_in_transit_comment' => sub { - my ( $self, $comment ) = @_; - my $uid = $self->current_user->{id}; + my ( $self, $comment, $uid ) = @_; + $uid //= $self->current_user->{id}; my $status = $self->pg->db->select( 'in_transit', ['user_data'], { user_id => $uid } )->expand->hash; |