mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
refresh pubsubhubbub subscriptions every three days
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.commafeed.frontend.rest.resources;
|
||||
|
||||
import java.util.Calendar;
|
||||
import java.util.List;
|
||||
|
||||
import javax.inject.Inject;
|
||||
@@ -65,7 +66,7 @@ public class PubSubHubbubCallbackREST {
|
||||
for (FeedPushInfo info : infos) {
|
||||
log.debug("activated push notifications for {}",
|
||||
info.getTopic());
|
||||
info.setActive(true);
|
||||
info.setLastPing(Calendar.getInstance().getTime());
|
||||
}
|
||||
feedPushInfoDAO.update(infos);
|
||||
return Response.ok(challenge).build();
|
||||
|
||||
Reference in New Issue
Block a user