This commit is contained in:
Umputun
2017-12-26 13:37:15 -06:00
parent 968f9f390f
commit ff77aaf49a
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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 {
+1 -1
View File
@@ -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)