Skip to content

Commit

Permalink
Merge pull request #41 from bmachek/40-bugwrong-behavior-of-confirmat…
Browse files Browse the repository at this point in the history
…ion-dialog-for-delete-images

Bugfix for issue #40
  • Loading branch information
bmachek authored Oct 1, 2024
2 parents 0b51e0f + 7f9341c commit 8f03bca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions immich-plugin.lrplugin/PublishTask.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f03bca

Please sign in to comment.