diff --git a/poll/instance.go b/poll/instance.go index df5c4e6..e79b91f 100644 --- a/poll/instance.go +++ b/poll/instance.go @@ -167,26 +167,18 @@ func PollMastodonPleroma(endpoint string, reportPostChan chan ReportPost) { // Validate time t, err := time.Parse(time.RFC3339, newpost.Created_at) if err != nil { - log.Print("Time was: " + newpost.Created_at) newpost.Created_at = time.Now().Format(time.RFC3339) - log.Print("Set to : " + newpost.Created_at) } if t.Unix() < 0 { - log.Print("Time was: " + newpost.Created_at) newpost.Created_at = time.Now().Format(time.RFC3339) - log.Print("Set to : " + newpost.Created_at) } t, err = time.Parse(time.RFC3339, newpost.Account.Created_at) if err != nil { - log.Print("Time was: " + newpost.Account.Created_at) newpost.Account.Created_at = time.Now().Format(time.RFC3339) - log.Print("Set to : " + newpost.Account.Created_at) } if t.Unix() < 0 { - log.Print("Time was: " + newpost.Account.Created_at) newpost.Account.Created_at = time.Now().Format(time.RFC3339) - log.Print("Set to : " + newpost.Account.Created_at) } reportPostChan <- newpost