mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
handle pushpress errors
This commit is contained in:
@@ -7,12 +7,11 @@ import java.util.Date;
|
||||
import javax.inject.Inject;
|
||||
|
||||
import org.apache.commons.lang.mutable.MutableBoolean;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import com.commafeed.backend.MetricsBean;
|
||||
import com.commafeed.backend.HttpGetter.NotModifiedException;
|
||||
import com.commafeed.backend.MetricsBean;
|
||||
import com.commafeed.backend.model.Feed;
|
||||
import com.commafeed.backend.model.FeedEntry;
|
||||
import com.commafeed.backend.model.FeedPushInfo;
|
||||
@@ -143,13 +142,6 @@ public class FeedRefreshWorker {
|
||||
if (info == null) {
|
||||
info = feedPushInfoService.findOrCreate(feed, hub, topic);
|
||||
}
|
||||
if (!StringUtils.equals(hub, info.getHub())
|
||||
|| !StringUtils.equals(topic, info.getTopic())) {
|
||||
info.setHub(hub);
|
||||
info.setTopic(topic);
|
||||
info.setFeed(feed);
|
||||
info.setActive(false);
|
||||
}
|
||||
feed.setPushInfo(info);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user