image removal from staging increased to 5*EditTTL

this is needed in case if user worked on the comment for long time
until submitting in order to avoid false-positive cleanup from the
staging
This commit is contained in:
Umputun
2019-06-08 21:54:00 -05:00
parent 3a266111fa
commit 133f5fc3f2
2 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -468,7 +468,7 @@ func (s *ServerCommand) makePicturesStore() (*image.Service, error) {
MaxWidth: s.Image.ResizeWidth,
},
ImageAPI: s.RemarkURL + "/api/v1/picture/",
TTL: s.EditDuration + time.Second, // add extra second to image TTL for staging
TTL: 5 * s.EditDuration, // add extra time to image TTL for staging
}, nil
}
return nil, errors.Errorf("unsupported pictures store type %s", s.Image.Type)