removed comments
This commit is contained in:
parent
52fd7bb7cb
commit
7f293b9dd3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user