mirror of
https://github.com/Athou/commafeed.git
synced 2026-10-27 15:38:47 +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:
@@ -286,24 +286,6 @@ public class FeedREST {
|
||||
|
||||
}
|
||||
|
||||
@Path("/refresh")
|
||||
@POST
|
||||
@Transactional
|
||||
@Operation(summary = "Queue a feed for refresh", description = "Manually add a feed to the refresh queue")
|
||||
public Response queueForRefresh(@Parameter(description = "Feed id", required = true) IDRequest req) {
|
||||
Preconditions.checkNotNull(req);
|
||||
Preconditions.checkNotNull(req.getId());
|
||||
|
||||
User user = authenticationContext.getCurrentUser();
|
||||
FeedSubscription sub = feedSubscriptionDAO.findById(user, req.getId());
|
||||
if (sub != null) {
|
||||
Feed feed = sub.getFeed();
|
||||
feedRefreshEngine.refreshImmediately(feed);
|
||||
return Response.ok().build();
|
||||
}
|
||||
return Response.ok(Status.NOT_FOUND).build();
|
||||
}
|
||||
|
||||
@Path("/mark")
|
||||
@POST
|
||||
@Transactional
|
||||
|
||||
Reference in New Issue
Block a user