More robust actor image lazy load

This commit is contained in:
Chocobozzz
2021-06-14 16:14:45 +02:00
parent a9fbc2aaa1
commit 79db409a41
2 changed files with 22 additions and 2 deletions

View File

@@ -98,4 +98,8 @@ export class ActorImageModel extends Model<Partial<AttributesOnly<ActorImageMode
const imagePath = join(CONFIG.STORAGE.ACTOR_IMAGES, this.filename)
return remove(imagePath)
}
isOwned () {
return !this.fileUrl
}
}