fix(server,web): correctly remove metadata from shared links (#4464)

* wip: strip metadata

* fix: authenticate time buckets

* hide detail panel

* fix tests

* fix lint

* add e2e tests

* chore: open api

* fix web compilation error

* feat: test with asset with gps position

* fix: only import fs.promises.cp

* fix: cleanup mapasset

* fix: format

---------

Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
Jonathan Jogenfors
2023-10-14 03:46:30 +02:00
committed by GitHub
parent 4a9f58bf9b
commit dadcf49eca
39 changed files with 332 additions and 150 deletions

View File

@@ -5770,6 +5770,9 @@
"format": "date-time",
"type": "string"
},
"hasMetadata": {
"type": "boolean"
},
"id": {
"type": "string"
},
@@ -5833,7 +5836,6 @@
"type": "array"
},
"thumbhash": {
"description": "base64 encoded thumbhash",
"nullable": true,
"type": "string"
},
@@ -5847,7 +5849,6 @@
},
"required": [
"type",
"id",
"deviceAssetId",
"deviceId",
"ownerId",
@@ -5855,19 +5856,21 @@
"originalPath",
"originalFileName",
"resized",
"thumbhash",
"fileCreatedAt",
"fileModifiedAt",
"updatedAt",
"isFavorite",
"isArchived",
"isTrashed",
"localDateTime",
"isOffline",
"isExternal",
"isReadOnly",
"checksum",
"id",
"thumbhash",
"localDateTime",
"duration",
"checksum"
"hasMetadata"
],
"type": "object"
},
@@ -7599,7 +7602,7 @@
"nullable": true,
"type": "string"
},
"showExif": {
"showMetadata": {
"default": true,
"type": "boolean"
},
@@ -7628,7 +7631,7 @@
"nullable": true,
"type": "string"
},
"showExif": {
"showMetadata": {
"type": "boolean"
}
},
@@ -7670,7 +7673,7 @@
"key": {
"type": "string"
},
"showExif": {
"showMetadata": {
"type": "boolean"
},
"type": {
@@ -7691,7 +7694,7 @@
"assets",
"allowUpload",
"allowDownload",
"showExif"
"showMetadata"
],
"type": "object"
},