Photos: Update file mod time when changing image orientation #464

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2023-03-22 17:41:07 +01:00
parent 5982911e4c
commit e9d96e8849
2 changed files with 3 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ func ChangeFileOrientation(router *gin.RouterGroup) {
// Abort in read-only mode or if editing is disabled.
if conf.ReadOnly() || !conf.Settings().Features.Edit {
Abort(c, http.StatusForbidden, i18n.ErrReadOnly)
c.AbortWithStatusJSON(http.StatusForbidden, i18n.NewResponse(http.StatusForbidden, i18n.ErrReadOnly))
return
} else if conf.DisableExifTool() {
c.AbortWithStatusJSON(http.StatusInternalServerError, "exiftool is disabled")