diff options
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Travelynx.pm | 2 | ||||
-rw-r--r-- | lib/Travelynx/Controller/Account.pm | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index 3840518..001a762 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -1045,7 +1045,7 @@ sub startup { $self->pg->db->update( 'webhooks', { - errored => !$success, + errored => $success ? 0 : 1, latest_run => DateTime->now( time_zone => 'Europe/Berlin' ), output => $text, }, diff --git a/lib/Travelynx/Controller/Account.pm b/lib/Travelynx/Controller/Account.pm index c02fb1a..e272eb1 100644 --- a/lib/Travelynx/Controller/Account.pm +++ b/lib/Travelynx/Controller/Account.pm @@ -222,6 +222,8 @@ sub privacy { $public_level &= ~0x02; } $self->set_privacy( $user->{id}, $public_level ); + + $self->flash( success => 'privacy' ); $self->redirect_to('account'); } else { @@ -244,8 +246,9 @@ sub webhook { token => $hook->{token}, enabled => $hook->{enabled} ); + $self->flash( success => 'webhook' ); + $self->redirect_to('account'); $self->run_hook( $self->current_user->{id}, 'ping' ); - $hook = $self->get_webhook; } else { $self->param( url => $hook->{url} ); |