diff options
author | Marco Nassabain <marco.nassabain@hotmail.com> | 2021-02-24 23:47:12 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-04-08 23:17:31 +0200 |
commit | 00f48c70dd5a4b2aa8e461199a658e45389d775d (patch) | |
tree | a353fd441a61d1fbdbced2d91fecbbda1ee70ca2 | |
parent | dc407c5d7da9a7315ca167ebdd54038af6e31b64 (diff) |
💡 ContentController: update comments feed cache
- shared items are still in the owners feeds
- since we don't have access to those feeds, we don't cache them
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
-rw-r--r-- | js/controller/ContentController.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/js/controller/ContentController.js b/js/controller/ContentController.js index c4d623128..5d0cf30f1 100644 --- a/js/controller/ContentController.js +++ b/js/controller/ContentController.js @@ -91,6 +91,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); } } @@ -105,6 +106,7 @@ app.controller('ContentController', function (Publisher, FeedResource, ItemResou if (!item.unread) { ItemResource.markItemRead(itemId, false); if (item.isShared === false) { + // feeds containing shared items aren't in our cache FeedResource.markItemOfFeedUnread(item.feedId); } } @@ -142,6 +144,7 @@ app.controller('ContentController', function (Publisher, FeedResource, ItemResou 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); } |