diff options
author | Marco Nassabain <marco.nassabain@hotmail.com> | 2021-03-07 00:23:38 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-04-08 23:17:31 +0200 |
commit | 04cf2672c3a06dbaa7792403237e3ec9bbaf5455 (patch) | |
tree | 910b406b0371bfceb6cdcb729166f90acb49a6a9 /js/controller/ContentController.js | |
parent | 088ebcc63a892f2245c863c647516c0dd8041de7 (diff) |
🎨 Adapt front-end to match new implementation
- remove share-specific code since new solution uses dummy feeds
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'js/controller/ContentController.js')
-rw-r--r-- | js/controller/ContentController.js | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/js/controller/ContentController.js b/js/controller/ContentController.js index b0478f0c4..15459c01b 100644 --- a/js/controller/ContentController.js +++ b/js/controller/ContentController.js @@ -90,10 +90,7 @@ app.controller('ContentController', function (Publisher, FeedResource, ItemResou if (!item.keepUnread && item.unread === true) { ItemResource.markItemRead(itemId); - if (item.isShared === false) { - // feeds containing shared items aren't in our cache - FeedResource.markItemOfFeedRead(item.feedId); - } + FeedResource.markItemOfFeedRead(item.feedId); } }; @@ -105,10 +102,7 @@ app.controller('ContentController', function (Publisher, FeedResource, ItemResou var item = ItemResource.get(itemId); if (!item.unread) { ItemResource.markItemRead(itemId, false); - if (item.isShared === false) { - // feeds containing shared items aren't in our cache - FeedResource.markItemOfFeedUnread(item.feedId); - } + FeedResource.markItemOfFeedUnread(item.feedId); } item.keepUnread = !item.keepUnread; @@ -143,11 +137,8 @@ app.controller('ContentController', function (Publisher, FeedResource, ItemResou itemIds.forEach(function (itemId) { var item = ItemResource.get(itemId); if (!item.keepUnread) { - if (item.isShared === false) { - // feeds containing shared items aren't in our cache - ids.push(itemId); - feedIds.push(item.feedId); - } + ids.push(itemId); + feedIds.push(item.feedId); } }); |