forked from wallabag/wallabag
Merge pull request #1296 from wallabag/v2-fix-564
fix #564: replace Untitled by the domain name
This commit is contained in:
@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user