Merge branch 'hotfix/0.0.15.11'
This commit is contained in:
commit
7ab03f8022
2 changed files with 5 additions and 2 deletions
|
@ -75,7 +75,7 @@ class SendWebMentions implements ShouldQueue
|
||||||
$links = \GuzzleHttp\Psr7\parse_header($response->getHeader('Link'));
|
$links = \GuzzleHttp\Psr7\parse_header($response->getHeader('Link'));
|
||||||
foreach ($links as $link) {
|
foreach ($links as $link) {
|
||||||
if (mb_stristr($link['rel'], 'webmention')) {
|
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
|
public function resolveUri(string $url, string $base): string
|
||||||
{
|
{
|
||||||
$endpoint = \GuzzleHttp\Psr7\uri_for($url);
|
$endpoint = \GuzzleHttp\Psr7\uri_for($url);
|
||||||
if ($endpoint->getScheme() !== null) {
|
if ($endpoint->getScheme() != '') {
|
||||||
return (string) $endpoint;
|
return (string) $endpoint;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## Verion 0.0.15.11 (2016-11-07)
|
||||||
|
- Fix send webmention
|
||||||
|
|
||||||
## Version 0.0.15.10 (2016-11-07)
|
## Version 0.0.15.10 (2016-11-07)
|
||||||
- Update typekit’s sri hash
|
- Update typekit’s sri hash
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue