aboutsummaryrefslogtreecommitdiff
path: root/src/phinde/Subscriptions.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2020-03-07 21:42:45 +0100
committerChristian Weiske <cweiske@cweiske.de>2020-03-07 21:42:45 +0100
commitf0427f03bde2846e544565571e10542ea7426c4f (patch)
treed9089ef7384f6ee526d87d6a95e85e1802134c61 /src/phinde/Subscriptions.php
parentb7bd33c14a0e1fa8a382a6c4345941e854b95bf2 (diff)
downloadphinde-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.php2
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);
}