summaryrefslogtreecommitdiffstats
path: root/lib/Controller/ItemController.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Controller/ItemController.php')
-rw-r--r--lib/Controller/ItemController.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Controller/ItemController.php b/lib/Controller/ItemController.php
index cf4fe2237..4d2050e63 100644
--- a/lib/Controller/ItemController.php
+++ b/lib/Controller/ItemController.php
@@ -176,7 +176,8 @@ class ItemController extends Controller
);
break;
}
- $return['items'] = $items;
+ // Map sharer display names onto shared items
+ $return['items'] = $this->shareService->mapSharedByDisplayNames($items);
// this gets thrown if there are no items
// in that case just return an empty array
@@ -236,7 +237,8 @@ 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['items'] = $items;
+ // Map sharer display names onto shared items
+ $return['items'] = $this->shareService->mapSharedByDisplayNames($items);
// this gets thrown if there are no items
// in that case just return an empty array