From 49f579e08ee8edc3990db10c1e4a7bc21d6f653d Mon Sep 17 00:00:00 2001 From: DingDongSoLong4 <99329275+DingDongSoLong4@users.noreply.github.com> Date: Wed, 1 Jun 2022 03:58:44 +0200 Subject: [PATCH] Fix gallery updating (#2611) --- pkg/gallery/scan.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/gallery/scan.go b/pkg/gallery/scan.go index 3528c8b93..f45a26d77 100644 --- a/pkg/gallery/scan.go +++ b/pkg/gallery/scan.go @@ -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