From 7f293b9dd3991217229d0da718a8daf3950cdf66 Mon Sep 17 00:00:00 2001 From: Farhan Khan Date: Sun, 6 Dec 2020 00:16:04 -0500 Subject: [PATCH] removed comments --- poll/instance.go | 8 -------- 1 file changed, 8 deletions(-) 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