X-Git-Url: https://git.cweiske.de/phinde.git/blobdiff_plain/c38abf3b8de60ec1012f0fdf6e65658b97b3a13b..973ef8c4f8c15848dfc135e11053e5eb6f5dcdb7:/bin/subscribe.php?ds=sidebyside 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);