mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-15 21:41:06 +00:00
Merge pull request #1296 from wallabag/v2-fix-564
fix #564: replace Untitled by the domain name
This commit is contained in:
commit
e9d5c2bf02
1 changed files with 1 additions and 1 deletions
|
@ -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