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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user