Filtering corrupted xml

master 1.0.0
Uriel Fanelli 2023-07-15 01:06:56 +02:00
parent fedc958926
commit a50d6c91ea
1 changed files with 4 additions and 4 deletions

View File

@ -42,17 +42,17 @@ func forwardLastFeed(url string) {
postAge = *b.UpdatedParsed
} else {
log.Println("No Published date or update date. This feed is crap, giving up")
postAge = time.Now()
postAge = time.Now().Add(Zint + (1 * time.Hour))
}
log.Println("Post Age: ", postAge)
log.Println("Last Post Age: ", postAge)
if time.Since(postAge) < Zint {
postOnMastodon(b.Link, "["+feed.Title+"] "+b.Title)
log.Println("New content from: ", feed.Title, b.Title)
log.Println("New content from: ", feed.Title, b.Title, feed.Description)
} else {
log.Println("No new content from: ", feed.Title)
log.Println("No new content from: ", feed.Title, feed.Description)
}
}