mirror of
https://github.com/immich-app/immich.git
synced 2025-12-21 09:15:44 +03:00
feat(server): visibility column (#17939)
* feat: private view * pr feedback * sql generation * feat: visibility column * fix: set visibility value as the same as the still part after unlinked live photos * fix: test * pr feedback
This commit is contained in:
@@ -92,8 +92,12 @@ export class AssetService extends BaseService {
|
||||
|
||||
const asset = await this.assetRepository.update({ id, ...rest });
|
||||
|
||||
if (previousMotion) {
|
||||
await onAfterUnlink(repos, { userId: auth.user.id, livePhotoVideoId: previousMotion.id });
|
||||
if (previousMotion && asset) {
|
||||
await onAfterUnlink(repos, {
|
||||
userId: auth.user.id,
|
||||
livePhotoVideoId: previousMotion.id,
|
||||
visibility: asset.visibility,
|
||||
});
|
||||
}
|
||||
|
||||
if (!asset) {
|
||||
@@ -115,7 +119,7 @@ export class AssetService extends BaseService {
|
||||
}
|
||||
|
||||
if (
|
||||
options.isArchived !== undefined ||
|
||||
options.visibility !== undefined ||
|
||||
options.isFavorite !== undefined ||
|
||||
options.duplicateId !== undefined ||
|
||||
options.rating !== undefined
|
||||
|
||||
Reference in New Issue
Block a user