From f0427f03bde2846e544565571e10542ea7426c4f Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Sat, 7 Mar 2020 21:42:45 +0100 Subject: Support multiple hub links for WebSub --- src/phinde/Subscriptions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/phinde/Subscriptions.php') 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); } -- cgit v1.2.3