forked from wallabag/wallabag
Update url from graby
This commit is contained in:
@ -32,6 +32,7 @@ class EntryController extends Controller
|
||||
if ($form->isValid()) {
|
||||
$content = $this->get('wallabag_core.graby')->fetchContent($entry->getUrl());
|
||||
|
||||
$entry->setUrl($content['url'] ?: $entry->getUrl());
|
||||
$entry->setTitle($content['title']);
|
||||
$entry->setContent($content['html']);
|
||||
$entry->setMimetype($content['content_type']);
|
||||
|
||||
Reference in New Issue
Block a user