mirror of
https://github.com/wallabag/wallabag.git
synced 2024-06-29 18:40:33 +00:00
fix #564: replace Untitled by the domain name
This commit is contained in:
parent
54139268f8
commit
0bc2baa65c
|
@ -10,7 +10,7 @@ final class Extractor
|
||||||
public static function extract($url)
|
public static function extract($url)
|
||||||
{
|
{
|
||||||
$pageContent = self::getPageContent(new Url(base64_encode($url)));
|
$pageContent = self::getPageContent(new Url(base64_encode($url)));
|
||||||
$title = $pageContent['rss']['channel']['item']['title'] ?: 'Untitled';
|
$title = $pageContent['rss']['channel']['item']['title'] ?: parse_url($url, PHP_URL_HOST);
|
||||||
$body = $pageContent['rss']['channel']['item']['description'];
|
$body = $pageContent['rss']['channel']['item']['description'];
|
||||||
|
|
||||||
$content = new Content();
|
$content = new Content();
|
||||||
|
|
Loading…
Reference in a new issue