mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
persist read status instead of unread status
This commit is contained in:
@@ -113,7 +113,8 @@ public class FeedSubscriptionService {
|
||||
Map<Long, Long> map = cache.getUnreadCounts(user);
|
||||
if (map == null) {
|
||||
log.debug("unread count cache miss for {}", Models.getId(user));
|
||||
map = feedEntryStatusDAO.getUnreadCount(user);
|
||||
List<FeedSubscription> subs = feedSubscriptionDAO.findAll(user);
|
||||
map = feedEntryStatusDAO.getUnreadCount(subs);
|
||||
cache.setUnreadCounts(user, map);
|
||||
}
|
||||
return map;
|
||||
|
||||
Reference in New Issue
Block a user