mirror of
https://github.com/immich-app/immich.git
synced 2025-12-22 17:24:56 +03:00
feat(server): Shortened asset ID in storage template (#16433)
* Update storage-template.service.ts * Update supported-variables-panel.svelte * docs example * Update storage-template-settings.svelte
This commit is contained in:
@@ -304,6 +304,7 @@ export class StorageTemplateService extends BaseService {
|
||||
filetype: asset.type == AssetType.IMAGE ? 'IMG' : 'VID',
|
||||
filetypefull: asset.type == AssetType.IMAGE ? 'IMAGE' : 'VIDEO',
|
||||
assetId: asset.id,
|
||||
assetIdShort: asset.id.slice(-12),
|
||||
//just throw into the root if it doesn't belong to an album
|
||||
album: (albumName && sanitize(albumName.replaceAll(/\.+/g, ''))) || '',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user