summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-05-10 19:03:18 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-05-10 19:03:18 +0200
commit269b8536f42ee7b872f112c31490f2a44e345f23 (patch)
treef8921e41da29469cd74674a0cff921656bb6d652 /lib/Travelynx/Controller
parent3f4cf9ee42eb1c8be01ccefb9b396cebe1213413 (diff)
Add webhook to account page
Diffstat (limited to 'lib/Travelynx/Controller')
-rw-r--r--lib/Travelynx/Controller/Account.pm5
1 files changed, 4 insertions, 1 deletions
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} );