aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/api
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-01-17 09:55:25 +0100
committerGitHub <noreply@github.com>2017-01-17 09:55:25 +0100
commit89dcbe52775bac8d544448ff4f80b6256875de91 (patch)
treef45d41ea8d2d33a655a6b6c2017d28dfc98aa75b /application/api
parent679b6b40db1b654347e0b4785131796f7e3b8865 (diff)
parent7f96d9ec21a95cb85d0292b46e18235b20efbcb2 (diff)
downloadShaarli-89dcbe52775bac8d544448ff4f80b6256875de91.tar.gz
Shaarli-89dcbe52775bac8d544448ff4f80b6256875de91.tar.zst
Shaarli-89dcbe52775bac8d544448ff4f80b6256875de91.zip
Merge pull request #768 from ArthurHoaro/feature/get-public-links
Update LinkFilter to be able to filter only public links
Diffstat (limited to 'application/api')
-rw-r--r--application/api/controllers/Links.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/application/api/controllers/Links.php b/application/api/controllers/Links.php
index 1c7b41cd..01b7e783 100644
--- a/application/api/controllers/Links.php
+++ b/application/api/controllers/Links.php
@@ -41,7 +41,8 @@ class Links extends ApiController
41 'searchterm' => $request->getParam('searchterm', ''), 41 'searchterm' => $request->getParam('searchterm', ''),
42 ], 42 ],
43 false, 43 false,
44 $private === 'true' || $private === '1' 44 // to updated in another PR depending on the API doc
45 ($private === 'true' || $private === '1') ? 'private' : 'all'
45 ); 46 );
46 47
47 // Return links from the {offset}th link, starting from 0. 48 // Return links from the {offset}th link, starting from 0.