diff options
| author | winter | 2025-01-14 18:57:33 +0000 |
|---|---|---|
| committer | winter | 2025-01-14 18:57:33 +0000 |
| commit | 0f427b4b6f75134b2c25b7e5f8a515be2cec97f5 (patch) | |
| tree | 09c6094b29f15b7ba905dd30f46faa5948dff704 | |
| parent | 7e862e1bd62f1e1e25f6cec5cf740aa3d3a5b835 (diff) | |
tweak auto subscription logic
| -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 9795aa1..be7a7c5 100644 --- a/routes/subscribe.php +++ b/routes/subscribe.php @@ -21,6 +21,8 @@ Router::getInstance()->mount('/subscribe', function (array $args) { // also worth noting this is run immediately rather than scheduled as a job. might be best to change that. if ($instance->auth->outboundToken == null) $instance->beginOutboundAuth(); + elseif (!$instance->auth->inboundPushEnabled) + $instance->subscribe(); }); Router::getInstance()->mount('/unsubscribe', function (array $args) { |
