summaryrefslogtreecommitdiffstats
path: root/lib/Controller
diff options
context:
space:
mode:
authorMarco Nassabain <marco.nassabain@hotmail.com>2021-02-24 23:33:36 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 22:31:21 +0200
commit08982fc54088677cf4e9c5a0340a90e6eb406319 (patch)
tree0e19bda74681f2847162818c2a794a2215de55b1 /lib/Controller
parent0f6ec7c99ca43da46766ca6126ae20d280e9b662 (diff)
✨ Add findAllSharedAfter
- adapted Controller, Service and Mapper (newItems) Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'lib/Controller')
-rw-r--r--lib/Controller/ItemController.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Controller/ItemController.php b/lib/Controller/ItemController.php
index ab875b31c..577916e9d 100644
--- a/lib/Controller/ItemController.php
+++ b/lib/Controller/ItemController.php
@@ -229,6 +229,13 @@ class ItemController extends Controller
!$showAll
);
break;
+ case ListType::SHARED:
+ $items = $this->itemService->findAllSharedAfter(
+ $this->getUserId(),
+ $lastModified,
+ !$showAll
+ );
+ break;
default:
$items = $this->itemService->findAllAfter(
$this->getUserId(),