diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2020-03-06 18:33:42 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2020-03-06 18:33:42 +0100 |
| commit | 973ef8c4f8c15848dfc135e11053e5eb6f5dcdb7 (patch) | |
| tree | 5cb1ad71cfd0512522bcea2db656c6703de4092b /bin/subscribe.php | |
| parent | 54fbef1610d1c2ecb48fb149602e3b88f80747df (diff) | |
| download | phinde-973ef8c4f8c15848dfc135e11053e5eb6f5dcdb7.tar.gz phinde-973ef8c4f8c15848dfc135e11053e5eb6f5dcdb7.zip | |
Store the hub that was used for Websub subscription
Diffstat (limited to 'bin/subscribe.php')
| -rwxr-xr-x | bin/subscribe.php | 3 |
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); |
