From 220f70d54b93f54ce7f0b939519ef3d037e5dfdc Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Mon, 7 Nov 2016 15:03:48 +0000 Subject: [PATCH 1/2] =?UTF-8?q?trim=20angle=20brackets,=20fix=20getScheme(?= =?UTF-8?q?)=20check,=20it=20doesn=E2=80=99t=20return=20null,=20but=20an?= =?UTF-8?q?=20empty=20string?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Jobs/SendWebMentions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Jobs/SendWebMentions.php b/app/Jobs/SendWebMentions.php index cd593e56..41bd499b 100644 --- a/app/Jobs/SendWebMentions.php +++ b/app/Jobs/SendWebMentions.php @@ -75,7 +75,7 @@ class SendWebMentions implements ShouldQueue $links = \GuzzleHttp\Psr7\parse_header($response->getHeader('Link')); foreach ($links as $link) { if (mb_stristr($link['rel'], 'webmention')) { - return $this->resolveUri($link[0], $url); + return $this->resolveUri(trim($link[0], '<>'), $url); } } @@ -125,7 +125,7 @@ class SendWebMentions implements ShouldQueue public function resolveUri(string $url, string $base): string { $endpoint = \GuzzleHttp\Psr7\uri_for($url); - if ($endpoint->getScheme() !== null) { + if ($endpoint->getScheme() != '') { return (string) $endpoint; } From 6b802a7ad1e0358e88ce55b21b5b4608e8133318 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Mon, 7 Nov 2016 15:05:47 +0000 Subject: [PATCH 2/2] Bump version number --- changelog.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/changelog.md b/changelog.md index 177814a9..225b994f 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ # Changelog +## Verion 0.0.15.11 (2016-11-07) + - Fix send webmention + ## Version 0.0.15.10 (2016-11-07) - Update typekit’s sri hash