mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix: ensure manually tagged faces have proper source type (#16364)
immich-app/immich#16062 added manual face tagging and deletion, but did not add a new 'SourceType'. The create faces would default to 'machine-learning' which is incorrect, and has the annoying downside that they will be wiped when the 'Refresh Faces' job is run. Handling of non-machine-learning faces was previously added in immich-app/immich#6455. This PR simply extends it to the new manually tagged faces.
This commit is contained in:
parent
8fbd650483
commit
4b55888d16
10 changed files with 63 additions and 6 deletions
|
|
@ -4,7 +4,7 @@
|
|||
import { notificationController } from '$lib/components/shared-components/notification/notification';
|
||||
import { isFaceEditMode } from '$lib/stores/face-edit.svelte';
|
||||
import { getPeopleThumbnailUrl } from '$lib/utils';
|
||||
import { getAllPeople, createFace, type PersonResponseDto } from '@immich/sdk';
|
||||
import { getAllPeople, createFace, type PersonResponseDto, SourceType } from '@immich/sdk';
|
||||
import { Button } from '@immich/ui';
|
||||
import { Canvas, InteractiveFabricObject, Rect } from 'fabric';
|
||||
import { onMount } from 'svelte';
|
||||
|
|
@ -288,6 +288,7 @@
|
|||
assetFaceCreateDto: {
|
||||
assetId,
|
||||
personId: person.id,
|
||||
sourceType: SourceType.Manual,
|
||||
...data,
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue