diff options
| author | winter | 2024-12-17 21:09:57 +0000 |
|---|---|---|
| committer | winter | 2024-12-17 21:09:57 +0000 |
| commit | bbd2db18ba02f9f88b929679fa0e00afc8363032 (patch) | |
| tree | 5d0f5956310a7ad4251f1e38d74568daa3c40830 /routes | |
| parent | c58caced838a9a7954e7fefa60c01567bb6bc107 (diff) | |
bugfix ... actually save the thing in /(un)subscribe
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/subscribe.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/routes/subscribe.php b/routes/subscribe.php index 91a611f..e081309 100644 --- a/routes/subscribe.php +++ b/routes/subscribe.php @@ -10,6 +10,7 @@ Router::getInstance()->mount('/subscribe', function (array $args) { throw new Unauthorized(); } $instance->auth->outboundPushEnabled = true; + $instance->save(); http_response_code(204); // "No Content" }); @@ -19,5 +20,6 @@ Router::getInstance()->mount('/unsubscribe', function (array $args) { throw new Unauthorized(); } $instance->auth->outboundPushEnabled = false; + $instance->save(); http_response_code(204); // "No Content" });
\ No newline at end of file |
