From 00f48c70dd5a4b2aa8e461199a658e45389d775d Mon Sep 17 00:00:00 2001 From: Marco Nassabain Date: Wed, 24 Feb 2021 23:47:12 +0100 Subject: =?UTF-8?q?=F0=9F=92=A1=20ContentController:=20update=20comments?= =?UTF-8?q?=20feed=20cache=20-=20shared=20items=20are=20still=20in=20the?= =?UTF-8?q?=20owners=20feeds=20-=20since=20we=20don't=20have=20access=20to?= =?UTF-8?q?=20those=20feeds,=20we=20don't=20cache=20them?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marco Nassabain --- js/controller/ContentController.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'js') 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); } -- cgit v1.2.3