diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2020-03-07 21:42:45 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2020-03-07 21:42:45 +0100 |
| commit | f0427f03bde2846e544565571e10542ea7426c4f (patch) | |
| tree | d9089ef7384f6ee526d87d6a95e85e1802134c61 /src/phinde/Subscriptions.php | |
| parent | b7bd33c14a0e1fa8a382a6c4345941e854b95bf2 (diff) | |
| download | phinde-f0427f03bde2846e544565571e10542ea7426c4f.tar.gz phinde-f0427f03bde2846e544565571e10542ea7426c4f.zip | |
Support multiple hub links for WebSub
Diffstat (limited to 'src/phinde/Subscriptions.php')
| -rw-r--r-- | src/phinde/Subscriptions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/phinde/Subscriptions.php b/src/phinde/Subscriptions.php index 403f5d4..4650a0c 100644 --- a/src/phinde/Subscriptions.php +++ b/src/phinde/Subscriptions.php @@ -262,7 +262,7 @@ class Subscriptions $urls = $hue->getUrls($url); //we violate the spec by not requiring a self URL $topicUrl = isset($urls['self']) ? $urls['self'] : $url; - $hubUrl = isset($urls['hub']) ? $urls['hub'] : null; + $hubUrl = isset($urls['hub'][0]) ? $urls['hub'][0] : null; return array($topicUrl, $hubUrl); } |
