Fix gallery updating (#2611)

This commit is contained in:
DingDongSoLong4 2022-06-01 03:58:44 +02:00 committed by GitHub
parent 1c18ec1501
commit 49f579e08e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -187,7 +187,8 @@ func (scanner *Scanner) ScanNew(ctx context.Context, file file.SourceFile) (retG
scanner.PluginCache.ExecutePostHooks(ctx, g.ID, plugin.GalleryUpdatePost, nil, nil)
}
scanImages = isNewGallery
// Also scan images if zip file has been moved (ie updated) as the image paths are no longer valid
scanImages = isNewGallery || isUpdatedGallery
retGallery = g
return