aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/api/controllers
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-01-16 13:57:11 +0100
committerArthurHoaro <arthur@hoa.ro>2017-01-16 13:57:11 +0100
commit7f96d9ec21a95cb85d0292b46e18235b20efbcb2 (patch)
tree7fbedb066b3eef2d3951935806069b2236effb83 /application/api/controllers
parentae7f6b9d09c0f3e31d64e6c8a9804d5ab0c62eae (diff)
downloadShaarli-7f96d9ec21a95cb85d0292b46e18235b20efbcb2.tar.gz
Shaarli-7f96d9ec21a95cb85d0292b46e18235b20efbcb2.tar.zst
Shaarli-7f96d9ec21a95cb85d0292b46e18235b20efbcb2.zip
Update LinkFilter to be able to filter only public links
No update regarding the UI or the API for now Fixes #758
Diffstat (limited to 'application/api/controllers')
-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.