1
0
mirror of https://git.keinpfusch.net/loweel/zorg synced 2024-12-18 13:59:06 +01:00

Better fix

This commit is contained in:
loweel 2023-07-15 00:37:54 +02:00
parent 34caf24f6c
commit fedc958926

View File

@ -35,13 +35,14 @@ func forwardLastFeed(url string) {
return
}
postAge = time.Now()
log.Println("Post Age: ", postAge)
if b.PublishedParsed != nil {
postAge = *b.PublishedParsed
} else {
} else if b.UpdatedParsed != nil {
log.Println("Ops, no Published in the feed. Using Update Date")
postAge = *b.UpdatedParsed
} else {
log.Println("No Published date or update date. This feed is crap, giving up")
postAge = time.Now()
}
log.Println("Post Age: ", postAge)