]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/api/controllers/Links.php
Update LinkFilter to be able to filter only public links
[github/shaarli/Shaarli.git] / application / api / controllers / Links.php
index 1c7b41cd48551375b28428480ff692432cdca55a..01b7e783f0390ce1ff42756507b12cb952791c62 100644 (file)
@@ -41,7 +41,8 @@ class Links extends ApiController
                 'searchterm' => $request->getParam('searchterm', ''),
             ],
             false,
-            $private === 'true' || $private === '1'
+            // to updated in another PR depending on the API doc
+            ($private === 'true' || $private === '1') ? 'private' : 'all'
         );
 
         // Return links from the {offset}th link, starting from 0.