From 7f9341c9ce1d21252a47ca726c7d2da8987234e9 Mon Sep 17 00:00:00 2001 From: Bastian Machek <16717398+bmachek@users.noreply.github.com> Date: Tue, 1 Oct 2024 09:54:45 +0200 Subject: [PATCH] Bugfix for issue #40 --- immich-plugin.lrplugin/PublishTask.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/immich-plugin.lrplugin/PublishTask.lua b/immich-plugin.lrplugin/PublishTask.lua index eeb4035..47c1f03 100644 --- a/immich-plugin.lrplugin/PublishTask.lua +++ b/immich-plugin.lrplugin/PublishTask.lua @@ -158,9 +158,9 @@ function PublishTask.deletePhotosFromPublishedCollection(publishSettings, arrayO deletedCallback(arrayOfPhotoIds[i]) local success = true - if delete == 'ok' then + if delete == 'other' then success = immich:deleteAsset(arrayOfPhotoIds[i]) - elseif delete == 'other' then + elseif delete == 'ok' then if not immich:checkIfAssetIsInAnAlbum(arrayOfPhotoIds[i]) then success = immich:deleteAsset(arrayOfPhotoIds[i]) end