mirror of
https://github.com/derf/travelynx
synced 2024-11-10 15:04:17 +00:00
run webhook when updating checkin comment or visibility
This commit is contained in:
parent
57afb8c748
commit
a249be1d8b
2 changed files with 5 additions and 2 deletions
|
@ -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' );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -89,7 +89,7 @@
|
|||
<ul>
|
||||
<li><b>ping</b> (nach jeder gespeicherten Änderung in diesem Formular)</li>
|
||||
<li><b>checkin</b> (in einen Zug eingecheckt – Zielstation ist noch nicht bekannt)</li>
|
||||
<li><b>update</b> (eingecheckt und Ziel gewählt oder geändert)</li>
|
||||
<li><b>update</b> (eingecheckt und Ziel/Kommentar/Sichtbarkeit geändert)</li>
|
||||
<li><b>checkout</b> (aus einem Zug ausgecheckt)</li>
|
||||
<li><b>undo</b> (checkin oder checkout wurde rückgängig gemacht)</li>
|
||||
</ul>
|
||||
|
|
Loading…
Reference in a new issue