mirror of
https://github.com/alangrainger/immich-public-proxy.git
synced 2024-12-28 03:41:58 +00:00
Sanitize
This commit is contained in:
parent
64d30b1399
commit
12c254ae6d
2 changed files with 5 additions and 5 deletions
6
dist/immich.js
vendored
6
dist/immich.js
vendored
File diff suppressed because one or more lines are too long
|
@ -51,9 +51,9 @@ class Immich {
|
|||
switch (asset.type) {
|
||||
case AssetType.image:
|
||||
size = size === ImageSize.thumbnail ? ImageSize.thumbnail : ImageSize.original
|
||||
return this.request('/assets/' + asset.id + '/' + size)
|
||||
return this.request('/assets/' + encodeURIComponent(asset.id) + '/' + size)
|
||||
case AssetType.video:
|
||||
return this.request('/assets/' + asset.id + '/video/playback')
|
||||
return this.request('/assets/' + encodeURIComponent(asset.id) + '/video/playback')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue