Backups: Refactor config and add "sidecar-yaml" config option #4243

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2024-05-13 09:21:34 +02:00
parent e042b40975
commit 0396e86f4e
31 changed files with 407 additions and 226 deletions

View File

@@ -44,7 +44,7 @@ func LikePhoto(router *gin.RouterGroup) {
return
}
SavePhotoAsYaml(&m)
SaveSidecarYaml(&m)
PublishPhotoEvent(StatusUpdated, id, c)
}
@@ -84,7 +84,7 @@ func DislikePhoto(router *gin.RouterGroup) {
return
}
SavePhotoAsYaml(&m)
SaveSidecarYaml(&m)
PublishPhotoEvent(StatusUpdated, id, c)
}