aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/ApiBundle/Controller')
-rw-r--r--src/Wallabag/ApiBundle/Controller/WallabagRestController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
index 9ca008bf..7452c82a 100644
--- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
+++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
@@ -149,7 +149,7 @@ class WallabagRestController extends Controller
149 $content = $this->get('wallabag_core.graby')->fetchContent($url); 149 $content = $this->get('wallabag_core.graby')->fetchContent($url);
150 150
151 $entry = new Entry($this->getUser()); 151 $entry = new Entry($this->getUser());
152 $entry->setUrl($url); 152 $entry->setUrl($content['url'] ?: $url);
153 $entry->setTitle($request->request->get('title') ?: $content['title']); 153 $entry->setTitle($request->request->get('title') ?: $content['title']);
154 $entry->setContent($content['html']); 154 $entry->setContent($content['html']);
155 $entry->setMimetype($content['content_type']); 155 $entry->setMimetype($content['content_type']);