mirror of
https://github.com/Athou/commafeed.git
synced 2026-09-23 20:45:07 +00:00
remove feed/refresh rest endpoint as it's unused and does not honor the force-refresh-cooldown-duration setting (#1802)
This commit is contained in:
@@ -114,17 +114,6 @@ public class FeedSubscriptionService {
|
||||
user.setLastForceRefresh(Instant.now());
|
||||
}
|
||||
|
||||
public void refreshAllUpForRefresh(User user) {
|
||||
List<FeedSubscription> subs = feedSubscriptionDAO.findAll(user);
|
||||
for (FeedSubscription sub : subs) {
|
||||
Instant disabledUntil = sub.getFeed().getDisabledUntil();
|
||||
if (disabledUntil == null || disabledUntil.isBefore(Instant.now())) {
|
||||
Feed feed = sub.getFeed();
|
||||
feedRefreshEngine.refreshImmediately(feed);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public Map<Long, UnreadCount> getUnreadCount(User user) {
|
||||
return feedSubscriptionDAO.findAll(user)
|
||||
.stream()
|
||||
|
||||
Reference in New Issue
Block a user