summaryrefslogtreecommitdiffstats
path: root/lib/Controller
diff options
context:
space:
mode:
authorMarco Nassabain <marco.nassabain@hotmail.com>2021-03-03 22:34:28 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 22:31:21 +0200
commit9bd27da9bac99a7780df8eb3845df566fb23b02a (patch)
treecd831abd0fa7b14c1a0bce1023599354f22f4e2f /lib/Controller
parentd2e831fbaa02699516749d5d8fe455259eebf912 (diff)
🔥 Remove old share item logic & functions
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'lib/Controller')
-rw-r--r--lib/Controller/FeedController.php3
-rw-r--r--lib/Controller/ItemController.php20
2 files changed, 1 insertions, 22 deletions
diff --git a/lib/Controller/FeedController.php b/lib/Controller/FeedController.php
index 02fbbc625..f071ade0f 100644
--- a/lib/Controller/FeedController.php
+++ b/lib/Controller/FeedController.php
@@ -81,8 +81,7 @@ class FeedController extends Controller
// item id which will be used for marking feeds read
$params = [
'feeds' => $this->feedService->findAllForUser($this->getUserId()),
- 'starred' => count($this->itemService->starred($this->getUserId())),
- 'shared' => count($this->itemService->sharedWithUser($this->getUserId()))
+ 'starred' => count($this->itemService->starred($this->getUserId()))
];
try {
diff --git a/lib/Controller/ItemController.php b/lib/Controller/ItemController.php
index 6243142ab..4a01fb23c 100644
--- a/lib/Controller/ItemController.php
+++ b/lib/Controller/ItemController.php
@@ -133,7 +133,6 @@ class ItemController extends Controller
$return['newestItemId'] = $this->itemService->newest($this->getUserId())->getId();
$return['feeds'] = $this->feedService->findAllForUser($this->getUserId());
$return['starred'] = count($this->itemService->starred($this->getUserId()));
- $return['shared'] = count($this->itemService->sharedWithUser($this->getUserId()));
}
switch ($type) {
@@ -159,17 +158,6 @@ class ItemController extends Controller
$search_items
);
break;
- case ListType::SHARED:
- $items = $this->itemService->findAllSharedWithUserWithFilters(
- $this->getUserId(),
- $limit,
- $offset,
- !$showAll,
- $oldestFirst,
- $search_items
- );
- break;
-
default:
$items = $this->itemService->findAllWithFilters(
$this->getUserId(),
@@ -229,13 +217,6 @@ 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(),
@@ -248,7 +229,6 @@ class ItemController extends Controller
$return['newestItemId'] = $this->itemService->newest($this->getUserId())->getId();
$return['feeds'] = $this->feedService->findAllForUser($this->getUserId());
$return['starred'] = count($this->itemService->starred($this->getUserId()));
- $return['shared'] = count($this->itemService->sharedWithUser($this->getUserId()));
$return['items'] = $items;
// this gets thrown if there are no items