typos
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# remark [](http://drone.umputun.com:9080/umputun/remark)
|
||||
# remark42 [](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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user