mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
use publishedDate from feed to determine if we need to handle feed entries or not
This commit is contained in:
@@ -45,6 +45,12 @@ public class Feed extends AbstractModel {
|
||||
@Index(name = "lastupdated_index")
|
||||
private Date lastUpdated;
|
||||
|
||||
/**
|
||||
* Last publishedDate value in the feed
|
||||
*/
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date lastPublishedDate;
|
||||
|
||||
/**
|
||||
* Last time we successfully refreshed the feed
|
||||
*/
|
||||
@@ -210,4 +216,12 @@ public class Feed extends AbstractModel {
|
||||
this.pushLastPing = pushLastPing;
|
||||
}
|
||||
|
||||
public Date getLastPublishedDate() {
|
||||
return lastPublishedDate;
|
||||
}
|
||||
|
||||
public void setLastPublishedDate(Date lastPublishedDate) {
|
||||
this.lastPublishedDate = lastPublishedDate;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user