mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Photos: Update file mod time when changing image orientation #464
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user