diff options
author | Derf Null <derf@finalrewind.org> | 2023-06-18 08:38:55 +0200 |
---|---|---|
committer | Derf Null <derf@finalrewind.org> | 2023-06-18 08:38:55 +0200 |
commit | a249be1d8b81242d711de3e336f35cb4e9507b35 (patch) | |
tree | 6b999c557b916e235ca978c9d4665633dc9b3a7d /lib | |
parent | 57afb8c74846cdb4e8ae204c6ae9c37b3bdb3bda (diff) |
run webhook when updating checkin comment or visibility
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Travelynx/Controller/Traveling.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm index 23fb76d..63bf832 100755 --- a/lib/Travelynx/Controller/Traveling.pm +++ b/lib/Travelynx/Controller/Traveling.pm @@ -1569,6 +1569,7 @@ sub visibility_form { visibility => $self->param('status_level'), ); $self->redirect_to('/'); + $self->run_hook( $uid, 'update' ); } elsif ($journey_id) { $self->journeys->update_visibility( @@ -1651,11 +1652,13 @@ sub comment_form { } else { $self->app->log->debug("set comment"); + my $uid = $self->current_user->{id}; $self->in_transit->update_user_data( - uid => $self->current_user->{id}, + uid => $uid, user_data => { comment => $self->param('comment') } ); $self->redirect_to('/'); + $self->run_hook( $uid, 'update' ); } } |