diff --git a/README.md b/README.md index 2c610d36..6ee5d419 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# remark [![Build Status](http://drone.umputun.com:9080/api/badges/umputun/remark/status.svg)](http://drone.umputun.com:9080/umputun/remark) +# remark42 [![Build Status](http://drone.umputun.com:9080/api/badges/umputun/remark/status.svg)](http://drone.umputun.com:9080/umputun/remark) -Remark ia a comment engine, self-hosted, lightweight, simple (but functional) and doesn't spy on users. +Remark42 ia a comment engine, self-hosted, lightweight, simple (but functional) what doesn't spy on users. - Supports social login via google and github - Moderation allowing admins to remove comments and block users diff --git a/app/migrator/migrator.go b/app/migrator/migrator.go index 62df2d5b..412d50ce 100644 --- a/app/migrator/migrator.go +++ b/app/migrator/migrator.go @@ -22,7 +22,7 @@ type Exporter interface { Export(w io.Writer, siteID string) error } -// ImportParams defines everyting needed to run import +// ImportParams defines everything needed to run import type ImportParams struct { DataStore store.Interface InputFile string @@ -62,7 +62,7 @@ func ImportComments(p ImportParams) error { func AutoBackup(exporter Exporter, backupLocation string) { log.Print("[INFO] activate auto-backup") tick := time.NewTicker(24 * time.Hour) - for _ = range tick.C { + for range tick.C { log.Print("[DEBUG] make backup") fh, err := os.Create(fmt.Sprintf("%s/backup-%s.gz", backupLocation, time.Now().Format("20060102"))) if err != nil { diff --git a/app/migrator/remark.go b/app/migrator/remark.go index b5267d18..530e9c55 100644 --- a/app/migrator/remark.go +++ b/app/migrator/remark.go @@ -81,7 +81,7 @@ func (r *Remark) Import(reader io.Reader, siteID string) error { } } if scanner.Err() != nil { - return errors.Wrap(scanner.Err(), "error diring scan") + return errors.Wrap(scanner.Err(), "error in scan") } if failed > 0 { return errors.Errorf("failed to save %d comments", failed)