removed comments

This commit is contained in:
farhan 2020-12-06 00:16:04 -05:00
parent 52fd7bb7cb
commit 7f293b9dd3

View File

@ -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