parent
fedc958926
commit
a50d6c91ea
8
feed.go
8
feed.go
|
@ -42,17 +42,17 @@ func forwardLastFeed(url string) {
|
||||||
postAge = *b.UpdatedParsed
|
postAge = *b.UpdatedParsed
|
||||||
} else {
|
} else {
|
||||||
log.Println("No Published date or update date. This feed is crap, giving up")
|
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 {
|
if time.Since(postAge) < Zint {
|
||||||
|
|
||||||
postOnMastodon(b.Link, "["+feed.Title+"] "+b.Title)
|
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 {
|
} else {
|
||||||
log.Println("No new content from: ", feed.Title)
|
log.Println("No new content from: ", feed.Title, feed.Description)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue