aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/subscribe.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/subscribe.php b/bin/subscribe.php
index 7d05f79..9df5b08 100755
--- a/bin/subscribe.php
+++ b/bin/subscribe.php
@@ -45,7 +45,7 @@ if ($topic != $url) {
$sub = $subDb->get($topic);
if ($sub === false) {
- $subDb->create($topic);
+ $subDb->create($topic, $hub);
} else {
Log::info(
'Topic exists already in subscription table with status '
@@ -53,6 +53,7 @@ if ($sub === false) {
);
Log::info('Renewing subscription...');
$subDb->renew($sub->sub_id);
+ $hub = $sub->sub_hub;
}
$sub = $subDb->get($topic);