aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/front/controller/admin/ShaarePublishController.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-10-11 13:34:38 +0200
committerArthurHoaro <arthur@hoa.ro>2020-10-27 20:11:30 +0100
commit25e90d8d75382721ff7473fa1686090fcfeb46ff (patch)
treeaad18c29535d62b81c7991c4ae916bd596761ee6 /application/front/controller/admin/ShaarePublishController.php
parent5d8de7587d67b5c3e5d1fed8562d9b87ecde80c1 (diff)
downloadShaarli-25e90d8d75382721ff7473fa1686090fcfeb46ff.tar.gz
Shaarli-25e90d8d75382721ff7473fa1686090fcfeb46ff.tar.zst
Shaarli-25e90d8d75382721ff7473fa1686090fcfeb46ff.zip
Bulk creation: fix private status based on the first form
Diffstat (limited to 'application/front/controller/admin/ShaarePublishController.php')
-rw-r--r--application/front/controller/admin/ShaarePublishController.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/application/front/controller/admin/ShaarePublishController.php b/application/front/controller/admin/ShaarePublishController.php
index 608f79cf..fd680ea0 100644
--- a/application/front/controller/admin/ShaarePublishController.php
+++ b/application/front/controller/admin/ShaarePublishController.php
@@ -169,7 +169,11 @@ class ShaarePublishController extends ShaarliAdminController
169 $title = $request->getParam('title'); 169 $title = $request->getParam('title');
170 $description = $request->getParam('description'); 170 $description = $request->getParam('description');
171 $tags = $request->getParam('tags'); 171 $tags = $request->getParam('tags');
172 $private = filter_var($request->getParam('private'), FILTER_VALIDATE_BOOLEAN); 172 if ($request->getParam('private') !== null) {
173 $private = filter_var($request->getParam('private'), FILTER_VALIDATE_BOOLEAN);
174 } else {
175 $private = $this->container->conf->get('privacy.default_private_links', false);
176 }
173 177
174 // If this is an HTTP(S) link, we try go get the page to extract 178 // If this is an HTTP(S) link, we try go get the page to extract
175 // the title (otherwise we will to straight to the edit form.) 179 // the title (otherwise we will to straight to the edit form.)