]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/actor/actor-image.ts
More robust actor image lazy load
[github/Chocobozzz/PeerTube.git] / server / models / actor / actor-image.ts
index a35f9edb0c76b0ef52ab712fef2db99e1f894921..98a7f6fbaa575d7bc7d6c68d334eb5c497897220 100644 (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
+  }
 }