Better fix

master
Uriel Fanelli 2023-07-15 00:37:54 +02:00
parent 34caf24f6c
commit fedc958926
1 changed files with 5 additions and 4 deletions

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)