X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FApiBundle%2FController%2FWallabagRestController.php;h=35a90edde12bee3bc8b923edda9fa7311a4ff963;hb=e18138dbca536ebd49c938144f9d051e5276d4ea;hp=28145e45081bc957670049e16b4a73b1f0fc5ad1;hpb=11a452813c5c048174f0d827c2a171bb53520d0a;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php index 28145e45..35a90edd 100644 --- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php +++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php @@ -99,7 +99,6 @@ class WallabagRestController extends FOSRestController * {"name"="tags", "dataType"="string", "required"=false, "format"="tag1,tag2,tag3", "description"="a comma-separated list of tags."}, * {"name"="starred", "dataType"="boolean", "required"=false, "format"="true or false", "description"="entry already starred"}, * {"name"="archive", "dataType"="boolean", "required"=false, "format"="true or false", "description"="entry already archived"}, - * {"name"="content", "dataType"="string", "required"=false, "format"="content", "description"="content you want to pass directly"}, * } * ) * @@ -110,7 +109,6 @@ class WallabagRestController extends FOSRestController $this->validateAuthentication(); $url = $request->request->get('url'); - $content = $request->request->get('content'); $isArchived = $request->request->get('archive'); $isStarred = $request->request->get('starred'); @@ -132,10 +130,6 @@ class WallabagRestController extends FOSRestController $entry->setArchived(true); } - if (!empty($content)) { - $entry->setContent($content); - } - $em = $this->getDoctrine()->getManager(); $em->persist($entry);