Self reference detection

This commit is contained in:
2024-08-11 01:08:08 +08:00
parent 3e000b6f9e
commit d34e6f068b
4 changed files with 35 additions and 25 deletions

View File

@@ -187,7 +187,7 @@ func AnalyzeAttachment(file models.Attachment) error {
start = time.Now()
// Move temporary to permanet
// Move temporary to permanent
if !linked {
if err := ReUploadFileToPermanent(file); err != nil {
return fmt.Errorf("unable to move file to permanet storage: %v", err)