mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat: check server feature to render OCR search option (#23325)
This commit is contained in:
parent
9676da27c9
commit
106effca2e
4 changed files with 71 additions and 19 deletions
|
|
@ -46,6 +46,11 @@ dynamic upgradeDto(dynamic value, String targetType) {
|
|||
addDefault(value, 'profileChangedAt', DateTime.now().toIso8601String());
|
||||
addDefault(value, 'hasProfileImage', false);
|
||||
}
|
||||
case 'ServerFeaturesDto':
|
||||
if (value is Map) {
|
||||
addDefault(value, 'ocr', false);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue